Skip to content

Commit 404a8e5

Browse files
author
Luca Forstner
committed
feat: Disable debug ID injection when sourcemaps.disable is set
1 parent db774ce commit 404a8e5

File tree

1 file changed

+3
-1
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+3
-1
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ export function sentryUnpluginFactory({
351351
);
352352
}
353353

354-
plugins.push(debugIdInjectionPlugin(logger));
354+
if (!options.sourcemaps?.disable) {
355+
plugins.push(debugIdInjectionPlugin(logger));
356+
}
355357

356358
if (options.sourcemaps?.disable) {
357359
logger.debug(

0 commit comments

Comments
 (0)