Skip to content

Commit 45cc2a2

Browse files
authored
Add .jsx and .tsx to resolve.extensions (#2862)
These extensions are currently matched by the default rules for babel-loader
1 parent 01cf913 commit 45cc2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/environments/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = {
9191
},
9292
entry: getEntryObject(),
9393
resolve: {
94-
extensions: ['.js', '.mjs', '.ts', '.coffee'],
94+
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.coffee'],
9595
modules: getModulePaths(),
9696
plugins: [PnpWebpackPlugin]
9797
},

0 commit comments

Comments
 (0)