diff --git a/CHANGELOG.md b/CHANGELOG.md index 89cf694d..a3b65c4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.21.0 +- bug fixes + - custom module: fix autoreload on nested submodules + - launcher - print a qrcode when the server starts to help connecting mobile devices diff --git a/src/server/custom-module.js b/src/server/custom-module.js index dc373f4b..c7cdfb0a 100644 --- a/src/server/custom-module.js +++ b/src/server/custom-module.js @@ -233,7 +233,7 @@ class CustomModule { filename = path.resolve(path.dirname(this.filename), filename) } - this.submodules[filename] = loadedModules[filename] || new CustomModule(filename, this.context, this, this.parent || this) + this.submodules[filename] = loadedModules[filename] || new CustomModule(filename, this.context, this, this.mainModule || this) return this.submodules[filename].module.exports