mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +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 }
|
this.requiredModules[key] = { src, options, handler }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Default module options to empty object
|
||||||
|
if (options === undefined) {
|
||||||
|
options = {}
|
||||||
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// Prepare callback
|
// Prepare callback
|
||||||
const cb = err => {
|
const cb = err => {
|
||||||
|
Loading…
Reference in New Issue
Block a user