0.4.0 • Published 9 years ago

autopolyfiller-webpack v0.4.0

Weekly downloads
2
License
WTFPL
Repository
github
Last release
9 years ago

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' ] }
    } ]
}

Documentation: Using loaders.

License

WTFPL