File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,43 @@ module.exports = {
4444
4545```
4646
47+ ### Also, wildcards for matching are allowed, except names
48+
49+ _ Since v1.2.0_
50+
51+
52+ ``` js
53+ // webpack.config.js
54+
55+ const babelLoaderExcludeNodeModulesExcept = require (' babel-loader-exclude-node-modules-except' );
56+
57+ module .exports = {
58+ // config properties
59+ // ...
60+ module: {
61+ rules: [
62+ {
63+ test: / \. js$ / ,
64+ exclude: babelLoaderExcludeNodeModulesExcept ([
65+ ' react-*' ,
66+ ' @awesomecorp/*'
67+ ]),
68+ use: {
69+ loader: ' babel-loader'
70+ }
71+ }
72+ ]
73+ }
74+ };
75+
76+
77+
4778-- -
4879
4980#### Contributors 💪
5081
5182- April Arcus [@AprilArcus](https: // github.com/AprilArcus)
83+ - Thordur Thordarson [@earthslasthope](https: // github.com/earthslasthope)
5284
5385-- -
5486
You can’t perform that action at this time.
0 commit comments