We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df1298 commit 73311dcCopy full SHA for 73311dc
rollup.config.js
@@ -46,6 +46,17 @@ function makeLicensePlugin(title) {
46
});
47
}
48
49
+function makeIsDebugBuildPlugin(includeDebugging) {
50
+ return replace({
51
+ // don't turn `const __SENTRY_DEBUG__ = false` into `const false = false`
52
+ preventAssignment: true,
53
+ // everywhere else, replace it with the value of `includeDebugging`
54
+ values: {
55
+ __SENTRY_DEBUG__: includeDebugging,
56
+ },
57
+ });
58
+}
59
+
60
export const terserPlugin = terser({
61
mangle: {
62
// captureExceptions and captureMessage are public API methods and they don't need to be listed here
0 commit comments