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
Copy file name to clipboardExpand all lines: packages/bundler-plugin-core/src/types.ts
+36-20Lines changed: 36 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -245,47 +245,63 @@ export interface Options {
245
245
*/
246
246
bundleSizeOptimizations?: {
247
247
/**
248
-
* If set to true, the plugin will try to tree-shake debug statements out.
249
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
248
+
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
249
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
250
+
*
251
+
* Setting this option to `true` will disable features like the SDK's `debug` option.
250
252
*/
251
253
excludeDebugStatements?: boolean;
252
254
253
255
/**
254
-
* If set to true, the plugin will try to tree-shake performance monitoring statements out.
255
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
256
-
* Attention: DO NOT enable this when you're using any performance monitoring-related SDK features (e.g. Sentry.startTransaction()).
257
-
* This flag is intended to be used in combination with packages like @sentry/next or @sentry/sveltekit,
258
-
* which automatically include performance monitoring functionality.
256
+
* 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.
257
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
258
+
*
259
+
* **Notice**: Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
260
+
*
261
+
* @deprecated This option has been replaced with the `excludeTracing`. Currently, this option is an alias for `excludeTracing` but `excludePerformanceMonitoring` will be removed in the next major version.
259
262
*/
263
+
// TODO(v3): Remove this option
260
264
excludePerformanceMonitoring?: boolean;
261
265
262
266
/**
263
-
* If set to true, the plugin will try to tree-shake Session Replay's Canvas recording functionality out.
264
-
* You can safely do this when you do not want to capture any Canvas activity via Replay.
265
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
267
+
* 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.
268
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
269
+
*
270
+
* **Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
271
+
*/
272
+
excludeTracing?: boolean;
273
+
274
+
/**
275
+
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Canvas recording functionality.
276
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
277
+
*
278
+
* You can safely do this when you do not want to capture any Canvas activity via Sentry Session Replay.
266
279
*
267
-
* @deprecatedVersions v7.78.0 and later of the Sentry JavaScript SDKs do not include canvas support by default, making this option redundant.
280
+
* @deprecatedIn versions v7.78.0 and later of the Sentry JavaScript SDKs, canvas recording is opt-in making this option redundant.
268
281
*/
269
282
excludeReplayCanvas?: boolean;
270
283
271
284
/**
272
-
* If set to true, the plugin will try to tree-shake Session Replay's Shadow DOM recording functionality out.
273
-
* You can safely do this when you do not want to capture any Shadow DOM activity via Replay.
274
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
285
+
* 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.
286
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
287
+
*
288
+
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
275
289
*/
276
290
excludeReplayShadowDom?: boolean;
277
291
278
292
/**
279
-
* If set to true, the plugin will try to tree-shake Session Replay's IFrame recording functionality out.
280
-
* You can safely do this when you do not want to capture any IFrame activity via Replay.
281
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
293
+
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
294
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
295
+
*
296
+
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
282
297
*/
283
298
excludeReplayIframe?: boolean;
284
299
285
300
/**
286
-
* If set to true, the plugin will try to tree-shake Session Replay's Compression Web Worker out.
287
-
* You should only do this if you manually host a compression worker and configure it in your Replay config via `workerUrl`.
288
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
301
+
* 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.
302
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
303
+
*
304
+
* **Notice:** You should only do use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
Copy file name to clipboardExpand all lines: packages/dev-utils/src/generate-documentation-table.ts
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -343,6 +343,37 @@ type IncludeEntry = {
343
343
},
344
344
],
345
345
},
346
+
{
347
+
name: "bundleSizeOptimizations",
348
+
fullDescription: `Options related to bundle size optimizations. These options will allow you to optimize and reduce the bundle size of the Sentry SDK.`,
349
+
children: [
350
+
{
351
+
name: "excludeDebugStatements",
352
+
type: "boolean",
353
+
fullDescription: `If set to \`true\`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.\nNote that the success of this depends on tree shaking being enabled in your build tooling.\n\nSetting this option to \`true\` will disable features like the SDK's \`debug\` option.`,
354
+
},
355
+
{
356
+
name: "excludeTracing",
357
+
type: "boolean",
358
+
fullDescription: `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.\nNote that the success of this depends on tree shaking being enabled in your build tooling.\n\n**Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. \`Sentry.startTransaction()\`).`,
359
+
},
360
+
{
361
+
name: "excludeReplayShadowDom",
362
+
type: "boolean",
363
+
fullDescription: `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.\nNote that the success of this depends on tree shaking being enabled in your build tooling.\n\nThis option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.`,
364
+
},
365
+
{
366
+
name: "excludeReplayIframe",
367
+
type: "boolean",
368
+
fullDescription: `If set to \`true\`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay \`iframe\` recording functionality.\nNote that the success of this depends on tree shaking being enabled in your build tooling.\n\nYou can safely do this when you do not want to capture any \`iframe\` activity via Sentry Session Replay.`,
369
+
},
370
+
{
371
+
name: "excludeReplayWorker",
372
+
type: "boolean",
373
+
fullDescription: `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.\nNote that the success of this depends on tree shaking being enabled in your build tooling.\n\n**Notice:** You should only do use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the \`workerUrl\` option.`,
374
+
},
375
+
],
376
+
},
346
377
{
347
378
name: "reactComponentAnnotation",
348
379
fullDescription: `Options related to react component name annotations.
0 commit comments