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

[Draft] Noahdarveau/global polyfill #2707

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

noahdarveau-MSFT
Copy link
Contributor

Lately, we have had a number of issues popping up with vite users saying that global is undefined. This is due to the fact that vite the vite environment does not define the global object by default. This is a commonly known issue and a common solution is for vite app developers to define global in their applications or vite configurations. With the string of issues that have been coming in, we've been offering solutions that work for a large majority of people, though we are commonly getting new users chiming in that their slightly unique setups are still having issues. While unncessary on our part, I'm proposing adding a global polyfill to the package as I believe it will be a more robust solution to a wider range of vite users. I can't think of any immediate issues that would come to mind with the inclusion of a global polyfill, though with the messy nature of the javascript ecosystem, it is hard to be 100% certain it will not cause any new issues to arise for other library consumers.

@noahdarveau-MSFT noahdarveau-MSFT changed the title Noahdarveau/global polyfill [Draft] Noahdarveau/global polyfill Jan 28, 2025
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.

1 participant