From 8292aa54439bf79477a865fe061d5db3d4eb015f Mon Sep 17 00:00:00 2001 From: yangxuting Date: Thu, 2 Nov 2023 15:01:11 +0800 Subject: [PATCH] =?UTF-8?q?[create-inula]=20Simple-app=20webpack=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=B7=BB=E5=8A=A0jsx=E7=AD=89=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../generators/Simple-app/templates/webpack/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js b/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js index 10c148b9..9056a484 100644 --- a/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js +++ b/packages/create-inula/lib/generators/Simple-app/templates/webpack/webpack.config.js @@ -78,4 +78,7 @@ module.exports = { port: 9000, open: true, }, + resolve: { + extensions: ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json'], + }, };