Skip to content

Commit 330c639

Browse files
author
Luca Forstner
committed
Fix replacements for browser bundles
1 parent 522bb6b commit 330c639

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rollup/bundleHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function makeBundleConfigVariants(baseConfig, options = {}) {
157157
output: {
158158
entryFileNames: chunkInfo => `${baseConfig.output.entryFileNames(chunkInfo)}.debug.min.js`,
159159
},
160-
plugins: [makeIsDebugBuildPlugin, terserPlugin],
160+
plugins: [includeDebuggingPlugin, terserPlugin],
161161
},
162162
};
163163

rollup/plugins/bundlePlugins.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ export function makeLicensePlugin(title) {
4646
*/
4747
export function makeIsDebugBuildPlugin(includeDebugging) {
4848
return replace({
49-
// __DEBUG_BUILD__ should be save to replace in any case, so no checks for assignments necessary
49+
// __DEBUG_BUILD__ and __SENTRY_DEBUG__ are save to replace in any case, so no checks for assignments necessary
5050
preventAssignment: false,
5151
values: {
52+
// Flags in current package
5253
__DEBUG_BUILD__: includeDebugging,
54+
// Flags in dependencies
55+
__SENTRY_DEBUG__: includeDebugging,
5356
},
5457
});
5558
}

0 commit comments

Comments
 (0)