Skip to content

Commit

Permalink
refactor: run 'clientDynamicModules', 'enhanceAppFiles' hooks in para…
Browse files Browse the repository at this point in the history
…llel
  • Loading branch information
ulivz committed Dec 2, 2018
1 parent d594ce6 commit 43479a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/@vuepress/core/lib/prepare/AppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
])
}

/**
Expand Down

0 comments on commit 43479a2

Please sign in to comment.