Skip to content

Commit 2d6675b

Browse files
Lms24lobsterkatie
andauthored
Update packages/replay/src/constants.ts
Co-authored-by: Katie Byers <[email protected]>
1 parent de367c4 commit 2d6675b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/replay/src/constants.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { GLOBAL_OBJ } from '@sentry/utils';
22

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
3+
// exporting a separate copy of `WINDOW` rather than exporting the one from `@sentry/browser`
4+
// prevents the browser package from being bundled in the CDN bundle, and avoids a
5+
// circular dependency between the browser and replay packages should `@sentry/browser` import
6+
// from `@sentry/replay` in the future
67
export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;
78

89
export const REPLAY_SESSION_KEY = 'sentryReplaySession';

0 commit comments

Comments
 (0)