From 185c61d3702d6332128e3baabbcb6bbff4190537 Mon Sep 17 00:00:00 2001 From: Sidharth Rathi Date: Tue, 16 Aug 2022 17:23:29 +0530 Subject: [PATCH] fix: plugin loading order --- packages/core/src/modules/plugins.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }); }