Skip to content

Commit

Permalink
reexport and wrap functions
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Oct 31, 2024
1 parent 9ed9471 commit b8a73ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nuxt/src/vite/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export function removeSentryQueryFromPath(url: string): string {
}

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

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

0 comments on commit b8a73ca

Please sign in to comment.