From fafaf88798a6ad81455738cabe40958cc491cb03 Mon Sep 17 00:00:00 2001 From: Veesh Goldman Date: Mon, 12 Aug 2024 15:20:32 +0300 Subject: [PATCH] fix: disable sourcemaps from the modern way of uploading --- packages/bundler-plugin-core/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bundler-plugin-core/src/index.ts b/packages/bundler-plugin-core/src/index.ts index b69aca73..ff4ceb6a 100644 --- a/packages/bundler-plugin-core/src/index.ts +++ b/packages/bundler-plugin-core/src/index.ts @@ -355,7 +355,9 @@ export function sentryUnpluginFactory({ plugins.push(debugIdInjectionPlugin(logger)); - if (!options.authToken) { + if (options.sourcemaps?.disable) { + logger.debug("Source map upload was disabled. Will not upload sourcemaps."); + } else if (!options.authToken) { logger.warn( "No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/" );