You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/nitro/src/setup/setupSourceMaps.ts
+5-26Lines changed: 5 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ export function setupSourceMaps(nitro: Nitro, moduleOptions: SentryNitroOptions)
30
30
// In case we overwrite the source map settings, we default to deleting the files
31
31
letshouldDeleteFilesFallback=true;
32
32
33
-
nitro.hooks.hook('compiled',()=>{
33
+
nitro.hooks.hook('build:before',()=>{
34
34
if(sourceMapsEnabled&&!nitro.options.dev){
35
35
// Changing this setting will propagate:
36
36
// - for client to viteConfig.build.sourceMap
@@ -179,32 +179,17 @@ export function getPluginOptions(
179
179
};
180
180
}
181
181
182
-
/* There are multiple ways to set up source maps (https://github.com/getsentry/sentry-javascript/issues/13993 and https://github.com/getsentry/sentry-javascript/pull/15859)
183
-
1. User explicitly disabled source maps
184
-
- keep this setting (emit a warning that errors won't be unminified in Sentry)
0 commit comments