Skip to content

Commit

Permalink
feat: Disable debug ID injection when sourcemaps.disable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Aug 14, 2024
1 parent db774ce commit 404a8e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ export function sentryUnpluginFactory({
);
}

plugins.push(debugIdInjectionPlugin(logger));
if (!options.sourcemaps?.disable) {
plugins.push(debugIdInjectionPlugin(logger));
}

if (options.sourcemaps?.disable) {
logger.debug(
Expand Down

0 comments on commit 404a8e5

Please sign in to comment.