Reduce runtime changes

This commit is contained in:
Matt Bierner
2025-11-21 15:50:54 -08:00
parent fcfb37c8f8
commit ac71e4f6ad
6 changed files with 37 additions and 30 deletions

View File

@@ -85,6 +85,10 @@ const vscodeWebEntryPoints = [
buildfile.entrypoint('vs/workbench/workbench.web.main.internal') // TODO@esm remove line when we stop supporting web-amd-esm-bridge
].flat();
/**
* @param extensionsRoot {string} The location where extension will be read from
* @param product The parsed product.json file contents
*/
export const createVSCodeWebFileContentMapper = (extensionsRoot: string, product: typeof import('../product.json')) => {
return (path: string): ((content: string) => string) | undefined => {
if (path.endsWith('vs/platform/product/common/product.js')) {