Restore cache

This commit is contained in:
Kevin Sawicki
2014-10-07 15:13:59 -07:00
committed by Kevin Sawicki
parent 245c77869f
commit 8c204bb60e

View File

@@ -123,8 +123,8 @@ exports.register = ->
originalResolveFilename = Module._resolveFilename
Module._resolveFilename = (relativePath, parentModule) ->
# resolvedPath = getCachedModulePath(relativePath, parentModule)
originalResolveFilename(relativePath, parentModule)
resolvedPath = getCachedModulePath(relativePath, parentModule)
resolvedPath ? originalResolveFilename(relativePath, parentModule)
registered = true
exports.add = (directoryPath) ->