From 992f2d442de0f04d0c87bb2b07fb46d704df10a7 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 24 Nov 2023 15:49:37 +0800 Subject: [PATCH] fix: dev plugins path --- packages/core/app/client/.umirc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/app/client/.umirc.ts b/packages/core/app/client/.umirc.ts index 23eb6b38c..1b828cb3e 100644 --- a/packages/core/app/client/.umirc.ts +++ b/packages/core/app/client/.umirc.ts @@ -9,7 +9,7 @@ process.env.DID_YOU_KNOW = 'none'; const pluginPrefix = (process.env.PLUGIN_PACKAGE_PREFIX || '').split(',').filter((item) => !item.includes('preset')); // 因为现在 preset 是直接引入的,所以不能忽略,如果以后 preset 也是动态插件的形式引入,那么这里可以去掉 -const pluginDirs = (process.env.PLUGIN_PATH || 'packages/plugins/,packages/samples/') +const pluginDirs = (process.env.PLUGIN_PATH || 'packages/plugins/,packages/samples/,packages/pro-plugins/') .split(',').map(item => path.join(__dirname, '..', '..', '..', '..', item)); const outputPluginPath = path.join(__dirname, 'src', '.plugins');