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

Drop polyfills? #5

Open
janklimo opened this issue Oct 2, 2023 · 0 comments
Open

Drop polyfills? #5

janklimo opened this issue Oct 2, 2023 · 0 comments

Comments

@janklimo
Copy link

janklimo commented Oct 2, 2023

Including polyfills by default leads to quite significant code bloat since core-js needs its internals modules to function (I'm using Vite):

Screenshot 2023-10-02 at 18 09 46

I'd like to propose to drop polyfills from this package for two reasons:

  1. The 3 polyfilled methods are widely supported: Array.prototype.find, Math.trunc, Array.forEach
  2. Users who still wish to support IE can polyfill the code themselves

This would probably need to be released as new major release.

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