mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
only set nodeCachedData-prop when having a dir, #60332
This commit is contained in:
14
src/bootstrap-amd.js
vendored
14
src/bootstrap-amd.js
vendored
@@ -41,12 +41,14 @@ exports.load = function (entrypoint, onLoad, onError) {
|
||||
}
|
||||
|
||||
// cached data config
|
||||
loader.config({
|
||||
nodeCachedData: {
|
||||
path: process.env['VSCODE_NODE_CACHED_DATA_DIR'],
|
||||
seed: entrypoint
|
||||
}
|
||||
});
|
||||
if (process.env['VSCODE_NODE_CACHED_DATA_DIR']) {
|
||||
loader.config({
|
||||
nodeCachedData: {
|
||||
path: process.env['VSCODE_NODE_CACHED_DATA_DIR'],
|
||||
seed: entrypoint
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
onLoad = onLoad || function () { };
|
||||
onError = onError || function (err) { console.error(err); };
|
||||
|
||||
Reference in New Issue
Block a user