From fb55dfc60ffd27c99cad14796740858141399af0 Mon Sep 17 00:00:00 2001 From: Benjamin Haines Date: Fri, 27 Sep 2024 23:16:05 -0400 Subject: [PATCH] fix(complete-react-case): resolve imports in component-app page 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. --- complete-react-case/component-app/rspack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/complete-react-case/component-app/rspack.config.js b/complete-react-case/component-app/rspack.config.js index 6b15de5bcce..d72d344e0eb 100644 --- a/complete-react-case/component-app/rspack.config.js +++ b/complete-react-case/component-app/rspack.config.js @@ -11,6 +11,9 @@ module.exports = { publicPath: 'http://localhost:3001/', clean: true, }, + resolve: { + extensions: [".jsx", ".js", ".json", ".wasm"] + }, experiments: { css: true, },