From 1b2c67fea7c43c372246d5e06ebf9e484dccb818 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 24 Jan 2024 13:06:06 +0800 Subject: [PATCH] fix: symlink dir --- packages/core/utils/plugin-symlink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/utils/plugin-symlink.js b/packages/core/utils/plugin-symlink.js index f067400bb2..94ea24c87f 100644 --- a/packages/core/utils/plugin-symlink.js +++ b/packages/core/utils/plugin-symlink.js @@ -78,7 +78,7 @@ async function createDevPluginSymLink(pluginName) { if (await fsExists(link)) { await unlink(link); } - await symlink(resolve(packagePluginsPath, pluginName), link); + await symlink(resolve(packagePluginsPath, pluginName), link, 'dir'); } catch (error) { console.error(error); }