-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
Replace usages of global
with globalThis
#4489
Conversation
Any chance of a linter to protect against regression here? |
Good idea! Let's have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
(N.B. leaving branch active for the moment as we're depending on it to unbreak some applications, once the next RC comes out this can be pruned) |
Fixes #4450
This should solve the problem with various bundlers (Vite etc) not being happy about the usage of
global
, withglobalThis
. All modern environments support this https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis, so it's a safe change.