File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { GLOBAL_OBJ } from '@sentry/utils' ;
2
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
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
6
7
export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window ;
7
8
8
9
export const REPLAY_SESSION_KEY = 'sentryReplaySession' ;
You can’t perform that action at this time.
0 commit comments