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/nextjs/src/config/types.ts
+44
Original file line number
Diff line number
Diff line change
@@ -307,6 +307,50 @@ export type SentryBuildOptions = {
307
307
};
308
308
};
309
309
310
+
/**
311
+
* Options to configure various bundle size optimizations related to the Sentry SDK.
312
+
*/
313
+
bundleSizeOptimizations?: {
314
+
/**
315
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) any debugging code within itself during the build.
316
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
317
+
*
318
+
* Setting this option to `true` will disable features like the SDK's `debug` option.
319
+
*/
320
+
excludeDebugStatements?: boolean;
321
+
322
+
/**
323
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code within itself that is related to tracing and performance monitoring.
324
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
325
+
* **Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
326
+
*/
327
+
excludeTracing?: boolean;
328
+
329
+
/**
330
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the SDK's Session Replay Shadow DOM recording functionality.
331
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
332
+
*
333
+
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
334
+
*/
335
+
excludeReplayShadowDom?: boolean;
336
+
337
+
/**
338
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the SDK's Session Replay `iframe` recording functionality.
339
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
340
+
*
341
+
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
342
+
*/
343
+
excludeReplayIframe?: boolean;
344
+
345
+
/**
346
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the SDK's Session Replay's Compression Web Worker.
347
+
* Note that the success of this depends on tree shaking being enabled in your build tooling.
348
+
*
349
+
* **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.
350
+
*/
351
+
excludeReplayWorker?: boolean;
352
+
};
353
+
310
354
/**
311
355
* Options related to react component name annotations.
312
356
* Disabled by default, unless a value is set for this option.
0 commit comments