esm - set module to es2022 (#225793)

This commit is contained in:
Benjamin Pasero
2024-08-17 09:38:22 +02:00
committed by GitHub
parent b2d6860308
commit 5a0335dcf3
+1 -1
View File
@@ -101,7 +101,7 @@ function migrateOne(filePath, fileContents) {
writeDestFile(filePath, fileContents);
} else if (filePath.endsWith('tsconfig.base.json')) {
const opts = JSON.parse(fileContents.toString());
opts.compilerOptions.module = 'ESNext';
opts.compilerOptions.module = 'es2022';
opts.compilerOptions.allowSyntheticDefaultImports = true;
writeDestFile(filePath, JSON.stringify(opts, null, '\t'));
} else if (binaryFileExtensions.has(fileExtension)) {