-
Notifications
You must be signed in to change notification settings - Fork 339
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
How about removing the atob polyfill? #145
Comments
I can submit a PR for this if the idea is accepted. |
Thanks for reaching out and sorry for the delayed response. I will have an internal conversation with the team about this to see if and how we can proceed with this idea. |
No worries, just ping me when you have come to an conclusion. |
A bit different from just dropping the polyfill, but I opened #151, which mainly is about both the polyfill and better CJS/ESM support. Because dropping the polyfill could be a breaking change (we could argue it isnt, but for a library with 5 million weekly downloads and no control over the environments, we figured we want to treat it as a breaking change to be sure), we took the time to update a couple extra things. |
Sounds good to me, yes totally agree that it would be best to threat it as an breaking change here. It also seems that the changes done in #151 would close #130 ? Looking forward to the next major release, will test out #151 and see if the output plays nice with our setup. Thanks for sharing the upcoming changes 😊 🙏🏽 |
Should we close this issue now that this has landed on the |
Released as part of the latest beta, please try it out and provide any feedback so we can improve. |
Checklist
Describe the problem you'd like to have solved
There's no reason to actually have the atob polfyill bundled as part of the build output.
Even if the code is not used, there's no reason to bundle it.
This is the support table these days https://caniuse.com/?search=atob
Also supported from Node 16 and forward, 20 is LTS from october this year. Seems that this is legacy on Node perhaps a workaround should be used here instead.
Also the polyfill will always polyfill on the server even when not needed since it checks for the existence of it on the
window
that does not exists on the server. It should actually check on theglobalThis
first and then on the window instead that's how the core-js code does it.Not sure even if the code is not used directly it can be tree shaken.
Most browser these days have support for atob.
Most people using babel and/or core-js will already bundle an drop in atob polyfill already.
Describe the ideal solution
atob
.The text was updated successfully, but these errors were encountered: