hooks: Await for modules:before hook

This commit is contained in:
Atinux 2017-10-31 12:45:32 +01:00
parent 7137f848a2
commit 8e9f17c491

View File

@ -15,7 +15,7 @@ export default class ModuleContainer {
}
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
await sequence(this.options.modules, this.addModule.bind(this))
// Call done hook