Skip to content

Commit a82c9d1

Browse files
committed
build(browser): Add back debug func to CDN bundle
Temporarily stop removing debug functionality from the CDN bundle while we work on a more fleshed out bundling solution. We previously added static globals in #4273 to leverage dead code elimination to remove debug functionality from the browser CDN. Currently though, we only publish a single CDN bundle, the one that has the debug functionality stripped. Until we publish seperate CDN bundles for debug and production, we will disable stripped debug functionality from the production bundle.
1 parent 4fec3b3 commit a82c9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/browser/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const terserInstance = terser({
1414
// want to have unnecessary debug functionality.
1515
global_defs: {
1616
__SENTRY_BROWSER_BUNDLE__: true,
17-
__SENTRY_NO_DEBUG__: true,
17+
__SENTRY_NO_DEBUG__: false,
1818
},
1919
},
2020
mangle: {

0 commit comments

Comments
 (0)