Difference between esnext and es2022 build target? #20247
-
What is the actual difference between newer es20xx versions and esnext when used as a build target? I mean, the differences between those years are mostly features which are not transpiled/polyfilled anyways. So what's left? Did module loading change at all in the recent years? I mean, is there any actual difference between using es2022/23 and esnext in build target? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
es2022 and es2023 does not have any difference. It was added for consistency (see microsoft/TypeScript#57683). |
Beta Was this translation helpful? Give feedback.
es2022 and es2023 does not have any difference. It was added for consistency (see microsoft/TypeScript#57683).
es2023 and es2024 has a difference (esbuild try).
es2024 and esnext has a difference as well (esbuild try).