diff --git a/docs/platforms/javascript/common/configuration/tree-shaking.mdx b/docs/platforms/javascript/common/configuration/tree-shaking.mdx
index 14ea5b18ecd51..c3cfef31cf449 100644
--- a/docs/platforms/javascript/common/configuration/tree-shaking.mdx
+++ b/docs/platforms/javascript/common/configuration/tree-shaking.mdx
@@ -42,7 +42,9 @@ sentryPlugin({
// other config
bundleSizeOptimizations: {
excludeDebugStatements: true,
+ // Only relevant if you added `browserTracingIntegration`
excludePerformanceMonitoring: true,
+ // Only relevant if you added `replayIntegration`
excludeReplayIframe: true,
excludeReplayShadowDom: true,
excludeReplayWorker: true,
@@ -120,20 +122,24 @@ Replacing this flag with `false` will tree shake any SDK code that's related to
`__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.
+
+This has no effect if you did not add `browserTracingIntegration`.
+
+
`__RRWEB_EXCLUDE_IFRAME__`
-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 Session Replay. Enable this flag if you don't want to record any iframes.
+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 Session Replay. Enable this flag if you don't want to record any iframes. This has no effect if you did not add `replayIntegration`.
`__RRWEB_EXCLUDE_SHADOW_DOM__`
-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 Session Replay. Enable this flag if you don't want to record any shadow dom elements.
+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 Session Replay. Enable this flag if you don't want to record any shadow dom elements. This has no effect if you did not add `replayIntegration`.
`__SENTRY_EXCLUDE_REPLAY_WORKER__`
-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 Session Replay. Enable this flag if you want to host a compression worker yourself. See Using a Custom Compression Worker for details. **We don't recommend enabling this flag unless you provide a custom worker URL.**
+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 Session Replay. Enable this flag if you want to host a compression worker yourself. See Using a Custom Compression Worker 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`.