webpack-polyfill-injector icon indicating copy to clipboard operation
webpack-polyfill-injector copied to clipboard

Load from polyfill.io

Open garygreen opened this issue 5 years ago • 1 comments

Instead of creating thousands of individual polyfill files (or one big one), it would be neat to have an option of loading them from https://polyfill.io directly

This would invalidate the argument in the readme that it avoids a CDN, but it's a fair compromise to load individual/needed polyfills from a CDN than having thousands of files in your build.

Looking at the code, I believe it would be fairly straight forward to add this in. Maybe an option like fromCdn: true/false

garygreen avatar Mar 24 '19 19:03 garygreen

Thanks for your suggestion. Unfortunately I don't have enough time right now to implement it myself, but feel free to post a PR for this. Otherwise I'll leave it open until I have more time or someone else picks it.

SebastianS90 avatar Mar 25 '19 18:03 SebastianS90