ESM: revisit need for _VSCODE_NODE_MODULES (fix #226453) (#227427)

This commit is contained in:
Benjamin Pasero
2024-09-03 15:18:08 +02:00
committed by GitHub
parent b0a79def0b
commit d60295dc0e
11 changed files with 18 additions and 63 deletions

View File

@@ -77,9 +77,6 @@ if (majorRequiredNodeVersion !== currentMajorNodeVersion) {
function main() {
// VSCODE_GLOBALS: node_modules
globalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), { get: (_target, mod) => require(String(mod)) });
// VSCODE_GLOBALS: package/product.json
globalThis._VSCODE_PRODUCT_JSON = require(`${REPO_ROOT}/product.json`);
globalThis._VSCODE_PACKAGE_JSON = require(`${REPO_ROOT}/package.json`);