mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
📝
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user