From 5a0335dcf3ffe79466b90d7c24923f3158fac81a Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sat, 17 Aug 2024 09:38:22 +0200 Subject: [PATCH] esm - set module to `es2022` (#225793) --- migrate.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.mjs b/migrate.mjs index 1d559c81084..13ef3a6f641 100644 --- a/migrate.mjs +++ b/migrate.mjs @@ -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)) {