autopolyfiller-webpack
v0.4.0
Published
Autopolyfiller loader for webpack
Downloads
1
Maintainers
Readme
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: /\/(node_modules|bower_components)\//,
loader: 'autopolyfiller-webpack',
query: { browsers: [ 'last 2 versions', 'ie >= 9' ] }
} ]
}