autopolyfiller-webpack

0.4.0 • Public • Published

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

Package Sidebar

Install

npm i autopolyfiller-webpack

Weekly Downloads

4

Version

0.4.0

License

WTFPL

Last publish

Collaborators

  • matiaszanolli