Autopolyfiller loader for webpack
Heavily based on deepsweet/autopolyfiller-loader, but updated to work with newer versions of webpack.
This is like Autoprefixer, but for JavaScript polyfills. It scans your code and applies only required polyfills.
Install
$ npm i -S autopolyfiller-webpack
Usage
module: postLoaders: test: /\.js$/ exclude: /\/\// loader: 'autopolyfiller-webpack' query: browsers: 'last 2 versions' 'ie >= 9'