Skip to content

Commit 437d54e

Browse files
committed
Allow .jsx to not require its extension
This is in part because PhpStorm assumes this - autocompletes without the extension. And also, it IS a .js file... so I think it's a good idea
1 parent 2cc75c6 commit 437d54e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/config-generator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ class ConfigGenerator {
6363

6464
config.stats = this.buildStatsConfig();
6565

66+
config.resolve = {
67+
extensions: ['.js', '.jsx']
68+
};
69+
6670
return config;
6771
}
6872

0 commit comments

Comments
 (0)