From 82ad5de8cb1fbac4c7bb481f76ccb10748802ef9 Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 2 Dec 2021 14:11:19 +0800 Subject: [PATCH] fix: development environment client does not need to be compiled --- packages/app/.umirc.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/app/.umirc.ts b/packages/app/.umirc.ts index 22add7d68..e8c93e559 100644 --- a/packages/app/.umirc.ts +++ b/packages/app/.umirc.ts @@ -32,4 +32,8 @@ export default defineConfig({ baseNavigator: false, baseSeparator: '-', }, + chainWebpack(config) { + config.module.rules.get('ts-in-node_modules').include.add(path.resolve(__dirname, '../client/src')); + config.resolve.alias.set('@nocobase/client', path.resolve(__dirname, '../client/src')); + }, });