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

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

Closed
gabrieledarrigo opened this issue Dec 3, 2024 · 2 comments
Closed
Labels

Comments

@gabrieledarrigo
Copy link

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

@kdy1
Copy link
Member

kdy1 commented Dec 3, 2024

https://swc.rs/schema.json is the correct schema

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Jan 2, 2025

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants