Skip to content

Commit 449b536

Browse files
authored
fix(complete-react-case): resolve imports in component-app page (#4277)
Prior to this change loading the component-app at https://localhost:3001 errors with: `Cannot find module './App'` rspack outputs a suggestion to fix by updating the resolve.extensions config option.
1 parent fdd1584 commit 449b536

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

complete-react-case/component-app/rspack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = {
1111
publicPath: 'http://localhost:3001/',
1212
clean: true,
1313
},
14+
resolve: {
15+
extensions: [".jsx", ".js", ".json", ".wasm"]
16+
},
1417
experiments: {
1518
css: true,
1619
},

0 commit comments

Comments
 (0)