Skip to content

Missing es2023 target #3762

Closed
Closed

Description

@garysassano

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"

Activity

  1. changed the title [-]`Error: Invalid target "es2023" in "--target=es2023"`[/-] [+]Missing `es2023` target[/+] on May 12, 2024
  2. evanw commented on May 12, 2024

    @evanw
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions