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: docs/platforms/javascript/common/configuration/tree-shaking.mdx
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,9 @@ sentryPlugin({
42
42
// other config
43
43
bundleSizeOptimizations: {
44
44
excludeDebugStatements:true,
45
+
// Only relevant if you added `browserTracingIntegration`
45
46
excludePerformanceMonitoring:true,
47
+
// Only relevant if you added `replayIntegration`
46
48
excludeReplayIframe:true,
47
49
excludeReplayShadowDom:true,
48
50
excludeReplayWorker:true,
@@ -120,20 +122,24 @@ Replacing this flag with `false` will tree shake any SDK code that's related to
120
122
`__SENTRY_TRACING__` must not be replaced with `false` when you're using any tracing-related SDK features (for example,`Sentry.startTransaction()`). This flag is intended to be used in combination with packages like `@sentry/next` or `@sentry/sveltekit`, which automatically include the tracing functionality.
121
123
</Note>
122
124
125
+
<PlatformCategorySectionsupported={['browser']}>
126
+
This has no effect if you did not add `browserTracingIntegration`.
Replacing this flag with `true` will tree shake any SDK code related to capturing iframe content with Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you don't want to record any iframes.
134
+
Replacing this flag with `true` will tree shake any SDK code related to capturing iframe content with Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you don't want to record any iframes. This has no effect if you did not add `replayIntegration`.
129
135
130
136
`__RRWEB_EXCLUDE_SHADOW_DOM__`
131
137
132
-
Replacing this flag with `true` will tree shake any SDK code related to capturing shadow dom elements with Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you don't want to record any shadow dom elements.
138
+
Replacing this flag with `true` will tree shake any SDK code related to capturing shadow dom elements with Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you don't want to record any shadow dom elements. This has no effect if you did not add `replayIntegration`.
133
139
134
140
`__SENTRY_EXCLUDE_REPLAY_WORKER__`
135
141
136
-
Replacing this flag with `true` will tree shake any SDK code that's related to the included compression web worker for Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you want to host a compression worker yourself. See <PlatformLinkto="/session-replay/configuration/#using-a-custom-compression-worker">Using a Custom Compression Worker</PlatformLink> for details. **We don't recommend enabling this flag unless you provide a custom worker URL.**
142
+
Replacing this flag with `true` will tree shake any SDK code that's related to the included compression web worker for Session Replay. It's only relevant when using <PlatformLinkto="/session-replay">Session Replay</PlatformLink>. Enable this flag if you want to host a compression worker yourself. See <PlatformLinkto="/session-replay/configuration/#using-a-custom-compression-worker">Using a Custom Compression Worker</PlatformLink> for details. **We don't recommend enabling this flag unless you provide a custom worker URL.** This has no effect if you did not add `replayIntegration`.
0 commit comments