I really really dislike IEðŸ˜
MIT License
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.
$ npm i downpile-node-modules-webpack-loader -D
// 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/,
},
],
},
};
$ npm i
$ make setup
$ npm test