We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd6235 commit 1c93c19Copy full SHA for 1c93c19
README.md
@@ -116,6 +116,18 @@ and then add any relevant extensions to your plugin config:
116
117
```
118
119
+## Using a `babel-register`
120
+
121
+Make sure you set `ignore` option of `babel-register` to ignore all files used by css-modules-require-hook to process your css files.
122
123
+**Require `babel-register` only once otherwise it will fail**
124
125
+```js
126
+require('babel-register')({
127
+ ignore: /processCss\.js$/ // regex matching all files used by css-modules-require-hook to process your css files
128
+})
129
+```
130
131
## License
132
133
MIT
0 commit comments