From 887864a98b9c72d2bf9d3d5d03b9308542e4ec7d Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 30 Oct 2015 19:10:26 +0100 Subject: [PATCH] :memo: --- src/native-compile-cache.js | 3 +++ 1 file changed, 3 insertions(+) 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