File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -126,22 +126,24 @@ export function sentryUnpluginFactory({
126
126
if ( ! options . sourcemaps ?. disable ) {
127
127
plugins . push ( debugIdInjectionPlugin ( logger ) ) ;
128
128
129
- // This option is only strongly typed for the webpack plugin, where it is used. It has no effect on other plugins
130
- const webpack_forceExitOnBuildComplete =
131
- typeof options . _experiments [ "forceExitOnBuildCompletion" ] === "boolean"
132
- ? options . _experiments [ "forceExitOnBuildCompletion" ]
133
- : undefined ;
134
-
135
- plugins . push (
136
- debugIdUploadPlugin (
137
- createDebugIdUploadFunction ( {
138
- sentryBuildPluginManager,
139
- } ) ,
140
- logger ,
141
- sentryBuildPluginManager . createDependencyOnBuildArtifacts ,
142
- webpack_forceExitOnBuildComplete
143
- )
144
- ) ;
129
+ if ( options . sourcemaps ?. disable !== "disable-upload" ) {
130
+ // This option is only strongly typed for the webpack plugin, where it is used. It has no effect on other plugins
131
+ const webpack_forceExitOnBuildComplete =
132
+ typeof options . _experiments [ "forceExitOnBuildCompletion" ] === "boolean"
133
+ ? options . _experiments [ "forceExitOnBuildCompletion" ]
134
+ : undefined ;
135
+
136
+ plugins . push (
137
+ debugIdUploadPlugin (
138
+ createDebugIdUploadFunction ( {
139
+ sentryBuildPluginManager,
140
+ } ) ,
141
+ logger ,
142
+ sentryBuildPluginManager . createDependencyOnBuildArtifacts ,
143
+ webpack_forceExitOnBuildComplete
144
+ )
145
+ ) ;
146
+ }
145
147
}
146
148
147
149
if ( options . reactComponentAnnotation ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export type NormalizedOptions = {
23
23
disable : boolean ;
24
24
sourcemaps :
25
25
| {
26
- disable ?: boolean ;
26
+ disable ?: boolean | "disable-upload" ;
27
27
assets ?: string | string [ ] ;
28
28
ignore ?: string | string [ ] ;
29
29
rewriteSources ?: RewriteSourcesHook ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export interface Options {
95
95
*
96
96
* Defaults to `false`.
97
97
*/
98
- disable ?: boolean ;
98
+ disable ?: boolean | "disable-upload" ;
99
99
100
100
/**
101
101
* A glob or an array of globs that specifies the build artifacts that should be uploaded to Sentry.
You can’t perform that action at this time.
0 commit comments