Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing es2023 target #3762

Closed
garysassano opened this issue May 12, 2024 · 1 comment
Closed

Missing es2023 target #3762

garysassano opened this issue May 12, 2024 · 1 comment

Comments

@garysassano
Copy link

garysassano commented May 12, 2024

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"
@garysassano garysassano changed the title Error: Invalid target "es2023" in "--target=es2023" Missing es2023 target May 12, 2024
@evanw
Copy link
Owner

evanw commented 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.

@evanw evanw closed this as completed in 46ea596 May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants