mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
📝 Add a couple notes
This commit is contained in:
committed by
Kevin Sawicki
parent
84e90d140f
commit
dc19fa4baa
@@ -3,6 +3,9 @@ fs = require 'fs-plus'
|
||||
|
||||
originalResolveFilename = Module._resolveFilename
|
||||
|
||||
# Precompute versions of all modules in node_modules
|
||||
# Precompute the version each file is compatible
|
||||
|
||||
Module._resolveFilename = (relative, parent) ->
|
||||
resolved = originalResolveFilename.apply(global, arguments)
|
||||
if relative[0] isnt '.' and not fs.isAbsolute(relative) and relative isnt resolved
|
||||
|
||||
Reference in New Issue
Block a user