mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
only set nodeCachedData-prop when having a dir, #60332
This commit is contained in:
12
src/bootstrap-window.js
vendored
12
src/bootstrap-window.js
vendored
@@ -91,13 +91,17 @@ exports.load = function (modulePaths, resultCallback, options) {
|
||||
const loaderConfig = {
|
||||
baseUrl: bootstrap.uriFromPath(configuration.appRoot) + '/out',
|
||||
'vs/nls': nlsConfig,
|
||||
nodeCachedData: {
|
||||
path: configuration.nodeCachedDataDir,
|
||||
seed: modulePaths.join('')
|
||||
},
|
||||
nodeModules: [/*BUILD->INSERT_NODE_MODULES*/]
|
||||
};
|
||||
|
||||
// cached data config
|
||||
if (configuration.nodeCachedDataDir) {
|
||||
loaderConfig.nodeCachedData = {
|
||||
path: configuration.nodeCachedDataDir,
|
||||
seed: modulePaths.join('')
|
||||
};
|
||||
}
|
||||
|
||||
if (options && typeof options.beforeLoaderConfig === 'function') {
|
||||
options.beforeLoaderConfig(configuration, loaderConfig);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user