Skip to content

Commit

Permalink
fix: Error loading npm entry
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Aug 12, 2024
1 parent a4f7fa0 commit 3f3aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class PluginLoader {
const list: Promise<boolean>[] = []
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
Expand Down

0 comments on commit 3f3aad9

Please sign in to comment.