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:
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.
Activity
[-]`Error: Invalid target "es2023" in "--target=es2023"`[/-][+]Missing `es2023` target[/+]evanw commentedon May 12, 2024
Sure, I can add that. I don't think it will do anything different than
es2022because all of the additions in ES2023 are APIs instead of syntax andtargetonly 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 usees2022instead ofes2023in the meantime.