mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(module): default module options to empty object
This commit is contained in:
parent
c1f77a5252
commit
1075492d8b
@ -131,6 +131,11 @@ module.exports = class ModuleContainer {
|
||||
this.requiredModules[key] = { src, options, handler }
|
||||
}
|
||||
|
||||
// Default module options to empty object
|
||||
if (options === undefined) {
|
||||
options = {}
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
// Prepare callback
|
||||
const cb = err => {
|
||||
|
Loading…
Reference in New Issue
Block a user