Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

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

Closed
saysmy opened this issue Nov 26, 2019 · 2 comments
Closed

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

saysmy opened this issue Nov 26, 2019 · 2 comments

Comments

@saysmy
Copy link

saysmy commented Nov 26, 2019

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()
@edmorley edmorley closed this as completed Feb 3, 2024
@saysmy
Copy link
Author

saysmy commented Feb 3, 2024 via email

@edmorley
Copy link
Member

edmorley commented Feb 3, 2024

GitHub sadly doesn't allow including a comment when mass-closing issues (nor setting the "not planned" closure status) - so unfortunately I couldn't add a comment explaining why to every issue. The reason for closing is this:
#358

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants