downpile-node-modules-webpack-loader

I really really dislike IE😭

MIT License

Stars
1

downpile-node-modules-webpack-loader

This plugin is experimental.

We should avoid considering node_modules code anytime but some node_modules are over es2015 so we need to downpile these code if we support IE11. This plugin supports only downpile using Babel, and cache for performance.

Install

$ npm i downpile-node-modules-webpack-loader -D

Usage

// webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        enforce: 'pre',
        use: {
          loader: 'downpile-node-modules-webpack-loader',
          options: {
            ignoredLibraries: [],
            polyfill: true,
            ecmaVersion: 5,
          },
        },
        include: /node_modules/,
      },
    ],
  },
};

Development

$ npm i
$ make setup
$ npm test
Badges
Extracted from project README
npm Codecov