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
`[Source Maps Plugin] Automatically setting \`sourceMapsUploadOptions.sourcemaps.filesToDeleteAfterUpload: ["${filesToDeleteGlob}"]\` to delete generated source maps after they were uploaded to Sentry.`,
'[Source Maps Plugin] We recommend setting the `sourceMapsUploadOptions.sourcemaps.filesToDeleteAfterUpload` option to clean up source maps after uploading. Otherwise, source maps might be deployed to production, depending on your configuration',
201
+
`[Sentry] Parts of source map generation are currently disabled in your Vite configuration (\`${settingKey}: false\`). This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`hidden\`).`,
`[Sentry] We discovered you enabled source map generation in your Vite configuration (\`${settingKey}\`). Sentry will keep this source map setting. This will un-minify the code snippet on the Sentry Issue page.`,
210
+
);
211
+
});
212
+
}
148
213
}
214
+
149
215
returnconfig;
150
216
},
217
+
};
151
218
219
+
constcustomDebugIdUploadPlugin: Plugin={
220
+
name: 'sentry-sveltekit-debug-id-upload-plugin',
221
+
apply: 'build',// only apply this plugin at build time
222
+
enforce: 'post',// this needs to be set to post, otherwise we don't pick up the output from the SvelteKit adapter
152
223
resolveId: (id,_importer,_ref)=>{
153
224
if(id===VIRTUAL_GLOBAL_VALUES_FILE){
154
225
return{
@@ -318,6 +389,7 @@ export async function makeCustomSentryVitePlugins(options?: CustomSentryVitePlug
`[Sentry] Parts of source map generation are currently disabled in your Vite configuration (\`${settingKey}: false\`). This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`hidden\`).`,
`[Sentry] We discovered \`${settingKey}\` is set to \`${viteSourceMap.toString()}\`. Sentry will keep this source map setting. This will un-minify the code snippet on the Sentry Issue page.`,
380
-
);
381
-
});
382
-
}
435
+
previousSourceMapSetting='enabled';
436
+
updatedSourceMapSetting=viteSourceMap;
383
437
}else{
384
-
previousUserSourceMapSetting='unset';
385
-
viteConfig.build.sourcemap='hidden';
386
-
387
-
consoleSandbox(()=>{
388
-
// eslint-disable-next-line no-console
389
-
console.log(`[Sentry] Enabled source map generation in the build options with \`${settingKey}: 'hidden'\`.`);
0 commit comments