Polyfills as a Service(polyfills.io) |
Polyfills as a Service(polyfills.io) |
I also stopped using this as you could just use babel to automatically use whichever polyfill you use with babel-runtime. Saving a few kb is an overoptimization.
If you're interested in maintaining this project, let me know. I can add you to the GitHub organization.
Works like a charm
That should say 'exclude', right? To avoid confusion, probably avoid "otherwise" too, spell it out "to exclude polyfills use a `-`; to include only listed polyfills use a `+`"
this is why web development makes me feel bad... all this time an effort spent solve very easily and classically well solved problems in the browser, because browsers are wastelands of terrible engineering :I
A good example of this is Promises, which are supported in many modern browsers, but not all.
If you're using webpack you can use the code splitting feature to make sure the browser doesn't download that extra few KBs (which is presumable a trade-off between (an) extra roundtrip(s), so maybe you should just swallow those KBs).