Skip to content

SWC schema.json doesn't support es2023 and es2024 for target #9783

@gabrieledarrigo

Description

@gabrieledarrigo

Describe the bug

#9700 was merged, but schema.json doesn't support es2023 and es2024 as possible values for the target property.
I'm unsure if this is the correct place to open this bug. Feel free to close it or tell me where I should open it.
If the fix is easy to apply, I'm also happy to contribute with a PR if you point me to the right place to address the change!

Input code

No response

Config

{
  "$schema": "http://json.schemastore.org/swcrc",
  "jsc": {
    "target": "es2023",
    "parser": {
      "syntax": "typescript",
      "decorators": true,
      "tsx": false
    },
    "transform": {
      "decoratorMetadata": true,
      "legacyDecorator": true
    }
  }
}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.9.3&code=H4sIAAAAAAAAA1NPy89XSEosAuIqdb2i1IKcxORUx5wcDXUFdR0FdXVNawB%2FuNJfIgAAAA%3D%3D&config=H4sIAAAAAAAAA1VPOw7DIAzdOQXy3KFi6NA79BCIOhERBGQTqSjK3UsIpM3m9%2FOzVyElTGzgKdcyFhA1MdKJC8N5TvpTGEDjNRuyMcGtqxPv0qAdY6W2Q4GkacRUU6zuSrUEuBAYe6Jx3s52yP%2BdJvhIyHw17lY9jw6vjaK1gg%2FvpYrtl5QjHhc84GfqZedisPzqyUQLiu0LtK2NIRcBAAA%3D

SWC Info output

No response

Expected behavior

SWC schema.json should support es2023 and es2024

Actual behavior

SWC schema.json doesn't support es2023 and es2024 for target.

Version

1.9.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions