webpack-chain
webpack-chain copied to clipboard
does webpack-chain config.module.exclude support regular?
config.module
.rule('compile')
.test(/\.js$/)
.exclude
.add(/node_modules/)
.end()
.use('babel')
.loader('babel-loader')
.options({
presets: [
['@babel/preset-env', { modules: false }],
],
});
config with this,but not work, why?
.exclude
.add(/node_modules/)
.end()