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
* This value can also be set via the `SENTRY_URL` environment variable.
29
31
*
30
-
* Defaults to https://sentry.io/, which is the correct value for SaaS customers.
32
+
* @default "https://sentry.io" (correct value for SaaS customers)
31
33
*/
32
34
url?: string;
33
35
34
36
/**
35
-
* Headers added to every outgoing network request.
37
+
* Additional headers to send with every outgoing request to Sentry.
36
38
*/
37
39
headers?: Record<string,string>;
38
40
39
41
/**
40
-
* Print useful debug information.
42
+
* Enable debug information logs during build-time.
43
+
* Enabling this will give you, for example, logs about source maps.
41
44
*
42
-
* Defaults to `false`.
45
+
* @defaultfalse
43
46
*/
44
47
debug?: boolean;
45
48
46
49
/**
47
-
* Suppresses all logs.
50
+
* Suppresses all build logs (all log levels, including errors).
48
51
*
49
-
* Defaults to `false`.
52
+
* @defaultfalse
50
53
*/
51
54
silent?: boolean;
52
55
@@ -68,14 +71,15 @@ export interface Options {
68
71
errorHandler?: (err: Error)=>void;
69
72
70
73
/**
71
-
* If set to true, internal plugin errors and performance data will be sent to Sentry.
74
+
* If this flag is `true`, internal plugin errors and performance data will be sent to Sentry.
75
+
* It will not collect any sensitive or user-specific data.
72
76
*
73
-
* At Sentry we like to use Sentry ourselves to deliver faster and more stable products.
77
+
* At Sentry, we like to use Sentry ourselves to deliver faster and more stable products.
74
78
* We're very careful of what we're sending. We won't collect anything other than error
75
79
* and high-level performance data. We will never collect your code or any details of the
76
80
* projects in which you're using this plugin.
77
81
*
78
-
* Defaults to `true`.
82
+
* @defaulttrue
79
83
*/
80
84
telemetry?: boolean;
81
85
@@ -87,35 +91,36 @@ export interface Options {
87
91
disable?: boolean;
88
92
89
93
/**
90
-
* Options for source maps uploading.
94
+
* Options related to source maps upload and processing.
91
95
*/
92
96
sourcemaps?: {
93
97
/**
94
-
* Disables all functionality related to sourcemaps.
98
+
* If this flag is `true`, any functionality related to source maps will be disabled.
95
99
*
96
-
* Defaults to `false`.
100
+
* @defaultfalse
97
101
*/
98
102
disable?: boolean;
99
103
100
104
/**
101
-
* A glob or an array of globs that specifies the build artifacts that should be uploaded to Sentry.
105
+
* A glob or an array of globs that specify the build artifacts and source maps that will be uploaded to Sentry.
102
106
*
103
-
* If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
107
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
104
108
*
105
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
109
+
* If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
106
110
*
107
111
* Use the `debug` option to print information about which files end up being uploaded.
112
+
*
108
113
*/
109
114
assets?: string|string[];
110
115
111
116
/**
112
117
* A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
113
118
*
114
-
* Default: `[]`
115
-
*
116
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
119
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
117
120
*
118
121
* Use the `debug` option to print information about which files end up being uploaded.
122
+
*
123
+
* @default []
119
124
*/
120
125
ignore?: string|string[];
121
126
@@ -150,11 +155,11 @@ export interface Options {
150
155
/**
151
156
* A glob or an array of globs that specifies the build artifacts that should be deleted after the artifact upload to Sentry has been completed.
152
157
*
153
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
154
-
*
155
-
* Note: If you pass in a promise that resolves to a string or array, the plugin will await the promise and use
158
+
* Note: If you pass in a Promise that resolves to a string or array, the plugin will await the Promise and use
156
159
* the resolved value globs. This is useful if you need to dynamically determine the files to delete. Some
157
-
* higher-level Sentry SDKs or options use this feature (e.g. SvelteKit).
160
+
* higher-level Sentry SDKs or options use this feature (e.g., SvelteKit).
161
+
*
162
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
158
163
*
159
164
* Use the `debug` option to print information about which files end up being deleted.
160
165
*/
@@ -173,10 +178,10 @@ export interface Options {
173
178
* This value can also be specified via the `SENTRY_RELEASE` environment variable.
174
179
*
175
180
* Defaults to automatically detecting a value for your environment.
176
-
* This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA.
177
-
* (the latter requires access to git CLI and for the root directory to be a valid repository)
181
+
* This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA
182
+
* (the latter requires access to git CLI and for the root directory to be a valid repository).
178
183
*
179
-
* If you didn't provide a value and the plugin can't automatically detect one, no release will be created.
184
+
* If no `name` is provided and the plugin can't automatically detect one, no release will be created.
180
185
*/
181
186
name?: string;
182
187
@@ -189,44 +194,48 @@ export interface Options {
189
194
190
195
/**
191
196
* Whether the plugin should create a release on Sentry during the build.
192
-
* Note that a release may still appear in Sentry even if this is value is `false` because any Sentry event that has a release value attached will automatically create a release.
193
-
* (for example via the `inject` option)
194
197
*
195
-
* Defaults to `true`.
198
+
* Note that a release may still appear in Sentry even if this value is `false`. Any Sentry event that has a release value attached
199
+
* will automatically create a release (for example, via the `inject` option).
200
+
*
201
+
* @default true
196
202
*/
197
203
create?: boolean;
198
204
199
205
/**
200
-
* Whether the Sentry release should be automatically finalized (meaning an end timestamp is added) after the build ends.
206
+
* Whether to automatically finalize the release. The release is finalized by adding an end timestamp after the build ends.
201
207
*
202
-
* Defaults to `true`.
208
+
* @defaulttrue
203
209
*/
204
210
finalize?: boolean;
205
211
206
212
/**
207
-
* Unique identifier for the distribution, used to further segment your release.
213
+
* Unique distribution identifier for the release. Used to further segment the release.
214
+
*
208
215
* Usually your build number.
209
216
*/
210
217
dist?: string;
211
218
212
219
/**
213
-
* Version control system remote name.
220
+
* Version control system (VCS) remote name.
214
221
*
215
222
* This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable.
216
223
*
217
-
* Defaults to 'origin'.
224
+
* @default "origin"
218
225
*/
219
226
vcsRemote?: string;
220
227
221
228
/**
222
-
* Associates the release with its commits in Sentry.
229
+
* Configuration for associating the release with its commits in Sentry.
230
+
*
231
+
* Set to `false` to disable commit association.
223
232
*
224
-
* Defaults to `{ auto: true }`. Set to `false` to disable commit association.
233
+
* @default{ auto: true }
225
234
*/
226
235
setCommits?: SetCommitsOptions|false;
227
236
228
237
/**
229
-
* Adds deployment information to the release in Sentry.
238
+
* Configuration for adding deployment information to the release in Sentry.
230
239
*/
231
240
deploy?: DeployOptions;
232
241
@@ -244,28 +253,34 @@ export interface Options {
244
253
};
245
254
246
255
/**
247
-
* Options related to bundle size optimizations.
256
+
* Options for bundle size optimizations by excluding certain features.
248
257
*/
249
258
bundleSizeOptimizations?: {
250
259
/**
251
-
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
252
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
260
+
* Exclude debug statements from the bundle, thus disabling features like the SDK's `debug` option.
253
261
*
254
-
* Setting this option to `true` will disable features like the SDK's `debug` option.
262
+
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK during the build.
263
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
264
+
*
265
+
* @default false
255
266
*/
256
267
excludeDebugStatements?: boolean;
257
268
258
269
/**
270
+
* Exclude tracing functionality from the bundle, thus disabling features like performance monitoring.
271
+
*
259
272
* If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
260
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
273
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
261
274
*
262
275
* **Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
276
+
277
+
* @default false
263
278
*/
264
279
excludeTracing?: boolean;
265
280
266
281
/**
267
282
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Canvas recording functionality.
268
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
283
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
269
284
*
270
285
* You can safely do this when you do not want to capture any Canvas activity via Sentry Session Replay.
271
286
*
@@ -274,26 +289,38 @@ export interface Options {
274
289
excludeReplayCanvas?: boolean;
275
290
276
291
/**
292
+
* Exclude Replay Shadow DOM functionality from the bundle.
293
+
*
277
294
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Shadow DOM recording functionality.
278
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
295
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
279
296
*
280
297
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
298
+
*
299
+
* @default false
281
300
*/
282
301
excludeReplayShadowDom?: boolean;
283
302
284
303
/**
285
-
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
286
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
304
+
* Exclude Replay iFrame functionality from the bundle.
305
+
*
306
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
307
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
287
308
*
288
309
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
310
+
*
311
+
* @default false
289
312
*/
290
313
excludeReplayIframe?: boolean;
291
314
292
315
/**
293
-
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
294
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
316
+
* Exclude Replay worker functionality from the bundle.
317
+
*
318
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
319
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
295
320
*
296
321
* **Notice:** You should only use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
0 commit comments