From a82c9d1b3758da64377f36f713bb33bae6dbcdc2 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 19 Jan 2022 10:40:30 -0500 Subject: [PATCH] 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 https://github.com/getsentry/sentry-javascript/pull/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. --- packages/browser/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser/rollup.config.js b/packages/browser/rollup.config.js index 3c584f0ef0aa..dc2e3aeb75c1 100644 --- a/packages/browser/rollup.config.js +++ b/packages/browser/rollup.config.js @@ -14,7 +14,7 @@ const terserInstance = terser({ // want to have unnecessary debug functionality. global_defs: { __SENTRY_BROWSER_BUNDLE__: true, - __SENTRY_NO_DEBUG__: true, + __SENTRY_NO_DEBUG__: false, }, }, mangle: {