diff --git a/src/native-compile-cache.js b/src/native-compile-cache.js index 1245d1f34..a930466a5 100644 --- a/src/native-compile-cache.js +++ b/src/native-compile-cache.js @@ -30,6 +30,9 @@ class NativeCompileCache { overrideModuleCompile () { let cacheStore = this.cacheStore let resolvedArgv = null + // Here we override Node's module.js + // (https://github.com/atom/node/blob/atom/lib/module.js#L378), changing + // only the bits that affect compilation in order to use the cached one. Module.prototype._compile = function (content, filename) { let self = this // remove shebang