You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Source map upload was disabled. Will not upload sourcemaps using debug ID process."
509
-
);
510
-
}elseif(isDevMode){
511
-
logger.debug("Running in development mode. Will not upload sourcemaps.");
512
-
}elseif(!options.authToken){
513
-
logger.warn(
514
-
"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/"+
@@ -589,7 +570,7 @@ export function createSentryBuildPluginManager(
589
570
"Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option."
590
571
);
591
572
}else{
592
-
awaitstartSpan(
573
+
constnumUploadedFiles=awaitstartSpan(
593
574
{name: "prepare-bundles",scope: sentryScope},
594
575
async(prepBundlesSpan)=>{
595
576
// Preparing the bundles can be a lot of work and doing it all at once has the potential of nuking the heap so
@@ -664,10 +645,14 @@ export function createSentryBuildPluginManager(
664
645
}
665
646
);
666
647
});
648
+
649
+
returnfiles.length;
667
650
}
668
651
);
669
652
670
-
logger.info("Successfully uploaded source maps to Sentry");
653
+
if(numUploadedFiles>0){
654
+
logger.info("Successfully uploaded source maps to Sentry");
655
+
}
671
656
}
672
657
}catch(e){
673
658
sentryScope.captureException('Error in "debugIdUploadPlugin" writeBundle hook');
@@ -732,3 +717,43 @@ export function createSentryBuildPluginManager(
732
717
createDependencyOnBuildArtifacts,
733
718
};
734
719
}
720
+
721
+
functioncanUploadSourceMaps(
722
+
options: NormalizedOptions,
723
+
logger: Logger,
724
+
isDevMode: boolean
725
+
): boolean{
726
+
if(options.sourcemaps?.disable){
727
+
logger.debug(
728
+
"Source map upload was disabled. Will not upload sourcemaps using debug ID process."
729
+
);
730
+
returnfalse;
731
+
}
732
+
if(isDevMode){
733
+
logger.debug("Running in development mode. Will not upload sourcemaps.");
734
+
returnfalse;
735
+
}
736
+
if(!options.authToken){
737
+
logger.warn(
738
+
"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/"+
0 commit comments