Parse resource path for relativizing cache paths

This commit is contained in:
Kevin Sawicki
2014-10-06 19:00:43 -07:00
committed by Kevin Sawicki
parent f523c5eb73
commit 7304b97547

View File

@@ -3,6 +3,11 @@ fs = require 'fs-plus'
nativeModules = process.binding('natives')
try
resourcePath = JSON.parse(decodeURIComponent(location.search.substr(14)))?.resourcePath
catch error
return
originalResolveFilename = Module._resolveFilename
# Precompute versions of all modules in node_modules