From 43479a25c1b435c970f6c46c54c5fc7a646534cc Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Mon, 3 Dec 2018 04:35:34 +0800 Subject: [PATCH] refactor: run 'clientDynamicModules', 'enhanceAppFiles' hooks in parallel --- packages/@vuepress/core/lib/prepare/AppContext.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/@vuepress/core/lib/prepare/AppContext.js b/packages/@vuepress/core/lib/prepare/AppContext.js index 71961ea12d..876b2703e3 100644 --- a/packages/@vuepress/core/lib/prepare/AppContext.js +++ b/packages/@vuepress/core/lib/prepare/AppContext.js @@ -93,9 +93,11 @@ module.exports = class AppContext { ) 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) + await Promise.all([ + this.pluginAPI.options.clientDynamicModules.apply(this), + this.pluginAPI.options.enhanceAppFiles.apply(this), + this.pluginAPI.options.globalUIComponents.apply(this) + ]) } /**