esm - backport worker related changes (#225672)

This commit is contained in:
Benjamin Pasero
2024-08-15 13:46:45 +02:00
committed by GitHub
parent 0aad4fe8d6
commit fdc8d882e2
36 changed files with 619 additions and 358 deletions

View File

@@ -157,7 +157,7 @@ export function createESMSourcesAndResources2(options: IOptions2): void {
if (file === 'tsconfig.json') {
const tsConfig = JSON.parse(fs.readFileSync(path.join(SRC_FOLDER, file)).toString());
tsConfig.compilerOptions.module = 'es6';
tsConfig.compilerOptions.module = 'es2022';
tsConfig.compilerOptions.outDir = path.join(path.relative(OUT_FOLDER, OUT_RESOURCES_FOLDER), 'vs').replace(/\\/g, '/');
write(getDestAbsoluteFilePath(file), JSON.stringify(tsConfig, null, '\t'));
continue;