diff --git a/lib/core/module.js b/lib/core/module.js index 704afc2853..7dc6d904bd 100755 --- a/lib/core/module.js +++ b/lib/core/module.js @@ -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 => {