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
- feat(core): Don't add `debugIdUploadPlugin` when sourcemaps option is disabled ([#753](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/753))
14
+
- fix(core): Avoid showing success message if upload was disabled or nothing was uploaded ([#757](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/757))
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,10 +81,10 @@ _These steps are only relevant to Sentry employees when preparing and publishing
81
81
### Updating the Changelog
82
82
83
83
1. Create a new branch.
84
-
2. Run `git log --format="- %s"` and copy everything since the last release.
84
+
2. Run `yarn changelog` and copy all commits in the list.
85
85
3. Create a new section in the changelog, deciding based on the changes whether it should be a minor bump or a patch release.
86
-
4. Paste in the logs you copied earlier.
86
+
4. Paste in the commits you copied earlier.
87
87
5. Delete any which aren't user-facing changes.
88
88
6. Alphabetize the rest.
89
89
7. If any of the PRs are from external contributors, include underneath the commits `Work in this release contributed by <list of external contributors' GitHub usernames>. Thank you for your contributions!`. If there's only one external PR, don't forget to remove the final `s`. If there are three or more, use an Oxford comma. (It's in the Sentry styleguide!)
90
-
8. Commit, push, and open a PR with the title `meta: Update changelog for <fill in relevant version here>`.
90
+
8. Commit, push, and open a PR against `main`with the title `meta: Update changelog for <fill in relevant version here>`.
"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/"+
logger.info("Successfully uploaded source maps to Sentry");
659
+
if(numUploadedFiles>0){
660
+
logger.info("Successfully uploaded source maps to Sentry");
661
+
}
671
662
}
672
663
}catch(e){
673
664
sentryScope.captureException('Error in "debugIdUploadPlugin" writeBundle hook');
@@ -732,3 +723,43 @@ export function createSentryBuildPluginManager(
732
723
createDependencyOnBuildArtifacts,
733
724
};
734
725
}
726
+
727
+
functioncanUploadSourceMaps(
728
+
options: NormalizedOptions,
729
+
logger: Logger,
730
+
isDevMode: boolean
731
+
): boolean{
732
+
if(options.sourcemaps?.disable){
733
+
logger.debug(
734
+
"Source map upload was disabled. Will not upload sourcemaps using debug ID process."
735
+
);
736
+
returnfalse;
737
+
}
738
+
if(isDevMode){
739
+
logger.debug("Running in development mode. Will not upload sourcemaps.");
740
+
returnfalse;
741
+
}
742
+
if(!options.authToken){
743
+
logger.warn(
744
+
"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