Skip to content

Commit

Permalink
esm - set module to es2022 (#225793)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Aug 17, 2024
1 parent b2d6860 commit 5a0335d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5a0335d

Please sign in to comment.