mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
hooks: Await for modules:before hook
This commit is contained in:
parent
7137f848a2
commit
8e9f17c491
@ -15,7 +15,7 @@ export default class ModuleContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ready() {
|
async ready() {
|
||||||
this.nuxt.callHook('modules:before', this, this.options.modules)
|
await this.nuxt.callHook('modules:before', this, this.options.modules)
|
||||||
// Load every module in sequence
|
// Load every module in sequence
|
||||||
await sequence(this.options.modules, this.addModule.bind(this))
|
await sequence(this.options.modules, this.addModule.bind(this))
|
||||||
// Call done hook
|
// Call done hook
|
||||||
|
Loading…
Reference in New Issue
Block a user