📝 Add a couple notes

This commit is contained in:
Kevin Sawicki
2014-10-06 18:45:58 -07:00
committed by Kevin Sawicki
parent 84e90d140f
commit dc19fa4baa

View File

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