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
)}\` to delete generated source maps after they were uploaded to Sentry.`,
30
29
);
31
-
});
32
30
}
33
31
34
32
return[
@@ -103,36 +101,37 @@ export function getUpdatedSourceMapSettings(
103
101
letupdatedSourceMapSetting=viteSourceMap;
104
102
105
103
constsettingKey='vite.build.sourcemap';
104
+
constdebug=sentryPluginOptions?.debug;
106
105
107
106
if(viteSourceMap===false){
108
107
updatedSourceMapSetting=viteSourceMap;
109
108
110
-
consoleSandbox(()=>{
111
-
// eslint-disable-next-line no-console
109
+
if(debug){
110
+
// Longer debug message with more details
111
+
// eslint-disable-next-line no-console
112
112
console.warn(
113
113
`[Sentry] Source map generation is currently disabled in your SolidStart 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\`).`,
114
114
);
115
-
});
115
+
}else{
116
+
// eslint-disable-next-line no-console
117
+
console.warn('[Sentry] Source map generation is disabled in your SolidStart configuration.');
`[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.`,
124
-
);
125
-
});
126
-
}
122
+
debug&&
123
+
// eslint-disable-next-line no-console
124
+
console.log(
125
+
`[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.`,
126
+
);
127
127
}else{
128
128
updatedSourceMapSetting='hidden';
129
129
130
-
consoleSandbox(()=>{
130
+
debug&&
131
131
// eslint-disable-next-line no-console
132
132
console.log(
133
133
`[Sentry] Enabled source map generation in the build options with \`${settingKey}: 'hidden'\`. The source maps will be deleted after they were uploaded to Sentry.`,
0 commit comments