Skip to content

Commit b8a73ca

Browse files
committed
reexport and wrap functions
1 parent 9ed9471 commit b8a73ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/nuxt/src/vite/utils.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ export function removeSentryQueryFromPath(url: string): string {
4444
}
4545

4646
/**
47-
* Extracts and sanitizes function re-export query parameters from a query string.
48-
* If it is a default export, it is not considered for re-exporting. This function is mostly relevant for re-exporting
49-
* serverless `handler` functions.
47+
* Extracts and sanitizes function re-export and function wrap query parameters from a query string.
48+
* If it is a default export, it is not considered for re-exporting.
5049
*
5150
* Only exported for testing.
5251
*/
@@ -83,7 +82,8 @@ export function extractFunctionReexportQueryParameters(query: string): { wrap: s
8382

8483
/**
8584
* Constructs a comma-separated string with all functions that need to be re-exported later from the server entry.
86-
* It uses Rollup's `exportedBindings` to determine the functions to re-export
85+
* It uses Rollup's `exportedBindings` to determine the functions to re-export. Functions which should be wrapped
86+
* (e.g. serverless handlers) are wrapped by Sentry.
8787
*/
8888
export function constructWrappedFunctionExportQuery(
8989
exportedBindings: Record<string, string[]> | null,

0 commit comments

Comments
 (0)