Skip to content

Commit caf9eef

Browse files
committed
Updates README.md
1 parent 54592a3 commit caf9eef

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)