diff --git a/src/vs/amdX.ts b/src/vs/amdX.ts index f5179a55553..60d61fabd1a 100644 --- a/src/vs/amdX.ts +++ b/src/vs/amdX.ts @@ -179,11 +179,6 @@ class AMDModuleImporter { const cache = new Map>(); -let _paths: Record = {}; -if (typeof globalThis.require === 'object') { - _paths = (>globalThis.require).paths ?? {}; -} - /** * Utility for importing an AMD node module. This util supports AMD and ESM contexts and should be used while the ESM adoption * is on its way. @@ -198,10 +193,6 @@ export async function importAMDNodeModule(nodeModuleName: string, pathInsideN isBuilt = Boolean((product ?? (globalThis as any).vscode?.context?.configuration()?.product)?.commit); } - if (_paths[nodeModuleName]) { - nodeModuleName = _paths[nodeModuleName]; - } - const nodeModulePath = pathInsideNodeModule ? `${nodeModuleName}/${pathInsideNodeModule}` : nodeModuleName; if (cache.has(nodeModulePath)) { return cache.get(nodeModulePath)!;