mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 22:00:59 +01:00
esm - more cleanup (#221240)
This commit is contained in:
Vendored
+8
-8
@@ -18,21 +18,21 @@
|
||||
// ESM-uncomment-end
|
||||
|
||||
/** @type Partial<IProductConfiguration> & { BUILD_INSERT_PRODUCT_CONFIGURATION?: string } */
|
||||
let product = { BUILD_INSERT_PRODUCT_CONFIGURATION: 'BUILD_INSERT_PRODUCT_CONFIGURATION' }; // DO NOT MODIFY, PATCHED DURING BUILD
|
||||
if (product['BUILD_INSERT_PRODUCT_CONFIGURATION']) {
|
||||
let productObj = { BUILD_INSERT_PRODUCT_CONFIGURATION: 'BUILD_INSERT_PRODUCT_CONFIGURATION' }; // DO NOT MODIFY, PATCHED DURING BUILD
|
||||
if (productObj['BUILD_INSERT_PRODUCT_CONFIGURATION']) {
|
||||
// @ts-ignore
|
||||
product = require('../product.json'); // Running out of sources
|
||||
productObj = require('../product.json'); // Running out of sources
|
||||
}
|
||||
|
||||
/** @type object & { BUILD_INSERT_PACKAGE_CONFIGURATION?: string } */
|
||||
let pkg = { BUILD_INSERT_PACKAGE_CONFIGURATION: 'BUILD_INSERT_PACKAGE_CONFIGURATION' }; // DO NOT MODIFY, PATCHED DURING BUILD
|
||||
if (pkg['BUILD_INSERT_PACKAGE_CONFIGURATION']) {
|
||||
let pkgObj = { BUILD_INSERT_PACKAGE_CONFIGURATION: 'BUILD_INSERT_PACKAGE_CONFIGURATION' }; // DO NOT MODIFY, PATCHED DURING BUILD
|
||||
if (pkgObj['BUILD_INSERT_PACKAGE_CONFIGURATION']) {
|
||||
// @ts-ignore
|
||||
pkg = require('../package.json'); // Running out of sources
|
||||
pkgObj = require('../package.json'); // Running out of sources
|
||||
}
|
||||
|
||||
module.exports.product = product;
|
||||
module.exports.pkg = pkg;
|
||||
module.exports.product = productObj;
|
||||
module.exports.pkg = pkgObj;
|
||||
|
||||
// ESM-uncomment-begin
|
||||
// export const product = module.exports.product;
|
||||
|
||||
@@ -31,7 +31,6 @@ const minimist = require('minimist');
|
||||
// import * as readline from 'readline';
|
||||
// import { performance }from 'perf_hooks';
|
||||
// import { fileURLToPath } from 'url';
|
||||
// import { createRequire } from 'node:module';
|
||||
// import * as bootstrapNode from './bootstrap-node.js';
|
||||
// import * as bootstrapAmd from './bootstrap-amd.js';
|
||||
// import { resolveNLSConfiguration } from './vs/base/node/nls.js';
|
||||
@@ -39,7 +38,6 @@ const minimist = require('minimist');
|
||||
// import * as perf from './vs/base/common/performance.js';
|
||||
// import minimist from 'minimist';
|
||||
//
|
||||
// const require = createRequire(import.meta.url);
|
||||
// const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
// ESM-uncomment-end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user