You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although Microsoft added es2023 target in TypeScript last month (see this PR), esbuild still doesn't recognize it. Attempting to use es2023 with esbuild results in the following error:
Error: Invalid target "es2023"in"--target=es2023"
The text was updated successfully, but these errors were encountered:
garysassano
changed the title
Error: Invalid target "es2023" in "--target=es2023"
Missing es2023 target
May 12, 2024
Sure, I can add that. I don't think it will do anything different than es2022 because all of the additions in ES2023 are APIs instead of syntax and target only cares about syntax changes. But I agree that it's weird that esbuild doesn't have an ES2023 target yet. You should be able to use es2022 instead of es2023 in the meantime.
Although Microsoft added
es2023
target in TypeScript last month (see this PR), esbuild still doesn't recognize it. Attempting to usees2023
with esbuild results in the following error:The text was updated successfully, but these errors were encountered: