mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Parse resource path for relativizing cache paths
This commit is contained in:
committed by
Kevin Sawicki
parent
f523c5eb73
commit
7304b97547
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user