webpack-chain icon indicating copy to clipboard operation
webpack-chain copied to clipboard

does webpack-chain config.module.exclude support regular?

Open saysmy opened this issue 5 years ago • 0 comments

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()

saysmy avatar Nov 26 '19 09:11 saysmy