0.4.0 • Published 9 years ago
autopolyfiller-webpack v0.4.0
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' ] }
} ]
}