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 bed60d4 commit 56250a6Copy full SHA for 56250a6
docs/rules/require-extension.md
@@ -33,6 +33,14 @@ The set of forbidden extensions is configurable. By default '.jsx' is blocked. I
33
}
34
```
35
36
+To configure WebPack to resolve '.jsx' add the following to `webpack.config.js`:
37
+
38
+```js
39
+resolve: {
40
+ extensions: ["", ".js", ".jsx"]
41
+ },
42
+```
43
44
## When Not To Use It
45
46
If you have file in your project with a '.jsx' file extension and do not have `require()` configured to automatically resolve '.jsx' files.
0 commit comments