This commit is contained in:
Antonio Scandurra
2015-10-30 19:10:26 +01:00
parent 27a6f36738
commit 887864a98b

View File

@@ -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