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

Apply React polyfill directly to globalThis #492

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

lemonmade
Copy link
Member

@lemonmade lemonmade commented Nov 14, 2024

This PR updates the React polyfill to apply directly to globalThis. This fixes a bug that resulted from shipping #470, since the additional polyfills added by @remote-dom/react/polyfill (in particular, the one for HTMLIframeElement) were only being applied to the polyfilled Window class, not to globalThis.

@lemonmade lemonmade force-pushed the react-polyfill-to-globalThis branch from fc11885 to b4e67ce Compare November 14, 2024 05:13
@lemonmade lemonmade force-pushed the react-polyfill-to-globalThis branch from b4e67ce to deb42fa Compare November 19, 2024 22:08
@lemonmade
Copy link
Member Author

I've updated this PR to depend on the changes in #499, where I rolled back the globalThis === globalThis.window === globalThis.self invariant.

@lemonmade lemonmade merged commit 59f417b into main Nov 20, 2024
6 checks passed
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