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

How is this different from babel-polyfill? #1739

Closed
sprlwrksAprilmintacpineda opened this issue Jul 17, 2018 · 1 comment
Closed

How is this different from babel-polyfill? #1739

sprlwrksAprilmintacpineda opened this issue Jul 17, 2018 · 1 comment

Comments

@sprlwrksAprilmintacpineda

HI I'm a bit new to polyfill stuff, so pardon my question. I can't find answers so I opened an issue...

@JakeChampion
Copy link
Collaborator

The differences between the two are:

  • polyfill.io includes polyfills for more than ECMAScript features such as a polyfill for elements and other DOM features.

  • polyfill.io will not serve polyfills to browsers which it knows already have the feature natively

  • polyfill.io has the polyfills separate to the code for your application

  • Babel does not polyfill DOM features, it is only for ECMAScript.

  • Babel adds the polyfills into your application code.

  • Babel by default will add polyfills for the lowest browser you support and you would be serving those polyfills to browsers which don't require them.

Babel and polyfill.io are both good services and both have their merits, I hope with this information you can decide which service is the one you want to use.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants