mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
don't use __$__nodeRequire to fetch product configuration
This commit is contained in:
@@ -151,6 +151,10 @@ function startup(codeCachePath, nlsConfig) {
|
||||
}
|
||||
});
|
||||
|
||||
// VSCODE_GLOBALS: package/product.json
|
||||
globalThis._VSCODE_PRODUCT_JSON = require('../product.json');
|
||||
globalThis._VSCODE_PACKAGE_JSON = require('../package.json');
|
||||
|
||||
// Load main in AMD
|
||||
perf.mark('code/willLoadMainBundle');
|
||||
require('./bootstrap-amd').load('vs/code/electron-main/main', () => {
|
||||
|
||||
Reference in New Issue
Block a user