Skip to content

Commit 43479a2

Browse files
committed
refactor: run 'clientDynamicModules', 'enhanceAppFiles' hooks in parallel
1 parent d594ce6 commit 43479a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/@vuepress/core/lib/prepare/AppContext.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ module.exports = class AppContext {
9393
)
9494

9595
await this.pluginAPI.options.ready.apply()
96-
await this.pluginAPI.options.clientDynamicModules.apply(this)
97-
await this.pluginAPI.options.globalUIComponents.apply(this)
98-
await this.pluginAPI.options.enhanceAppFiles.apply(this)
96+
await Promise.all([
97+
this.pluginAPI.options.clientDynamicModules.apply(this),
98+
this.pluginAPI.options.enhanceAppFiles.apply(this),
99+
this.pluginAPI.options.globalUIComponents.apply(this)
100+
])
99101
}
100102

101103
/**

0 commit comments

Comments
 (0)