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

Feature: Support default sets

Open j6s opened this issue 7 years ago • 2 comments

It would be neat if polyfll-injector supported default sets: https://polyfill.io/v2/docs/features/#default-sets

This way one could define polyfills: [ 'default' ] and have a good starting point for further polyfilling.

j6s avatar Jun 20 '18 12:06 j6s

Similarly it would be nice if we could define groups of polyfills. For example: I am currently using the following polyfills:

  • Symbol
  • Array.prototype.@@iterator
  • NodeList.prototype.@@iterator

In 99.9% of the cases either none of them are loaded or all of them. Allowing them to be grouped would reduce the number of output files.

j6s avatar Jun 20 '18 13:06 j6s

Moved the second idea to #24

SebastianS90 avatar Dec 28 '18 19:12 SebastianS90