We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de367c4 commit 2d6675bCopy full SHA for 2d6675b
packages/replay/src/constants.ts
@@ -1,8 +1,9 @@
1
import { GLOBAL_OBJ } from '@sentry/utils';
2
3
-// exporting WINDOW from within the @sentry/replay instead of importing it from @sentry/browser
4
-// this avoids the Browser package being bundled into the CDN bundle as well as a
5
-// circular dependency between the Browser and Replay packages in the future
+// exporting a separate copy of `WINDOW` rather than exporting the one from `@sentry/browser`
+// prevents the browser package from being bundled in the CDN bundle, and avoids a
+// circular dependency between the browser and replay packages should `@sentry/browser` import
6
+// from `@sentry/replay` in the future
7
export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;
8
9
export const REPLAY_SESSION_KEY = 'sentryReplaySession';
0 commit comments