diff --git a/src/plugin/base.ts b/src/plugin/base.ts index 84be67b..6b37798 100644 --- a/src/plugin/base.ts +++ b/src/plugin/base.ts @@ -12,7 +12,7 @@ export class BasePlugin implements Plugin { constructor(name: string, configItem: PluginConfigItem) { this.name = name; let importPath = configItem.path ?? ''; - if (configItem.package) { + if (!importPath && configItem.package) { importPath = path.resolve(require.resolve(`${configItem.package}/package.json`), '..'); } if (!importPath) {