diff --git a/packages/core/src/modules/plugins.ts b/packages/core/src/modules/plugins.ts index 29aab5f..0556939 100644 --- a/packages/core/src/modules/plugins.ts +++ b/packages/core/src/modules/plugins.ts @@ -53,12 +53,12 @@ export class PluginsManager { } if (next instanceof Promise) { - next.then((prog) => { - this.program = prog; + return next.then((p) => { + this.program = p; }); - } else { - this.program = next; } + + this.program = next; }); }