From 8e9f17c491098e0c5920bb366223f8c2332b4bc8 Mon Sep 17 00:00:00 2001 From: Atinux Date: Tue, 31 Oct 2017 12:45:32 +0100 Subject: [PATCH] hooks: Await for modules:before hook --- lib/core/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/module.js b/lib/core/module.js index d55eed13f0..b5a234fc69 100755 --- a/lib/core/module.js +++ b/lib/core/module.js @@ -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