From 3f3aad91a646e382754e7be16de3d89887ba6a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= Date: Mon, 12 Aug 2024 18:16:04 +0800 Subject: [PATCH] fix: Error loading npm entry --- src/core/plugin/loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/plugin/loader.ts b/src/core/plugin/loader.ts index 1726664..4e87e06 100644 --- a/src/core/plugin/loader.ts +++ b/src/core/plugin/loader.ts @@ -262,7 +262,7 @@ class PluginLoader { const list: Promise[] = [] const info = await common.getNpmPlugins(true) for (const { plugin, path: _path, file, isMain } of info) { - if (!isMain) { + if (isMain) { const root = path.join(process.cwd(), 'node_modules', plugin, _path) this.loadMain(root, file, true) continue