Skip to content

Commit

Permalink
hooks: Await for modules:before hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Oct 31, 2017
1 parent 7137f84 commit 8e9f17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e9f17c

Please sign in to comment.