Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure we do not check window in module scope #47

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Feb 8, 2023

It appears the new check fails on node, even when not importing rrweb. I guess it may be because in development it is not treeshaken, and module scope is still evaluated.

Now, we check this every time. This may be slightly more expensive, but also safer as we'd catch it if this is removed/overwritten later on.

@mydea mydea requested review from billyvg and Lms24 February 8, 2023 16:01
@mydea mydea self-assigned this Feb 8, 2023
@mydea mydea force-pushed the fn/no-window-module-scope branch from 6e8ed81 to 5ae3d66 Compare February 8, 2023 16:04
@mydea mydea merged commit fd12dd6 into sentry-v1 Feb 8, 2023
@mydea mydea deleted the fn/no-window-module-scope branch February 8, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants