Skip to content

Stop overwriting native implementation while loading the polyfill #71

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

Open
fabon-f opened this issue Apr 8, 2025 · 0 comments
Open

Comments

@fabon-f
Copy link

fabon-f commented Apr 8, 2025

For now, importing the polyfill globally via temporal-polyfill/global overwrites globalThis.Temporal and other APIs.

https://github.com/fullcalendar/temporal-polyfill/blob/bc1baf3875392ecd8522d40e7eecb55fa582808c/packages/temporal-polyfill/src/global.ts

As Firefox will ship Temporal in next month and this polyfill follows latest stable spec, it would be better that the polyfill doesn't overwrite native implementation if exists.

https://groups.google.com/a/mozilla.org/g/dev-platform/c/RtsRo93ygO4/m/2YzM42GUBwAJ

Perhaps it's still early to do that, because the spec for non-ISO calendars (Intl era and monthCode Proposal) is in progress and not yet stable. It depends on which level of spec-compliance this polyfill targets on, I think.

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

No branches or pull requests

1 participant