From 770aeab6cc7461f9f4634445a33a4758118c4825 Mon Sep 17 00:00:00 2001 From: "Jin Hu, Baek" Date: Sun, 7 Oct 2018 03:08:25 +0900 Subject: [PATCH] fix: change promise order for plugin page regist --- packages/@vuepress/core/lib/prepare/AppContext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vuepress/core/lib/prepare/AppContext.js b/packages/@vuepress/core/lib/prepare/AppContext.js index f22a2c894a..fcee1417fc 100644 --- a/packages/@vuepress/core/lib/prepare/AppContext.js +++ b/packages/@vuepress/core/lib/prepare/AppContext.js @@ -79,13 +79,13 @@ module.exports = class AppContext { this.markdown = createMarkdown(this) await this.resolvePages() + await this.pluginAPI.options.ready.apply() await Promise.all( this.pluginAPI.options.additionalPages.values.map(async (options) => { await this.addPage(options) }) ) - - await this.pluginAPI.options.ready.apply() + await this.pluginAPI.options.clientDynamicModules.apply(this) await this.pluginAPI.options.globalUIComponents.apply(this) await this.pluginAPI.options.enhanceAppFiles.apply(this)