diff --git a/src/server/custom-module.js b/src/server/custom-module.js index f95297ae..6b6178cf 100644 --- a/src/server/custom-module.js +++ b/src/server/custom-module.js @@ -87,6 +87,11 @@ class CustomModule { load() { + if (this.submodule && path.resolve(this.filename) === path.resolve(this.parent.filename)){ + this.exports = this.parent.exports + return true + } + var code try {