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

JscTarget in wasm-web.d.ts (@swc/wasm-web - 1.7.18) is still outdated after #9469 #9495

Open
catloversg opened this issue Aug 24, 2024 · 0 comments

Comments

@catloversg
Copy link

Describe the bug

In #9442, I reported the problem of outdated JscTarget in wasm-web.d.ts. It's supposed to be fixed by #9469. When I check the changelog at https://github.com/swc-project/swc/blob/faec8c134d950d10a9f2dce0e5680d9230f87ceb/CHANGELOG.md, #9469 was included in v1.7.17. However, when I use v1.7.18, JscTarget is still outdated.

Capture

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.7.18&code=H4sIAAAAAAAAA0vOzysuUahQsFUwsAYAr25jdAwAAAA%3D&config=H4sIAAAAAAAAA1WPSw7DIAwF9zkF8rrbdtE79BAWdSIifrKJVBTl7iUE0maH3xsz8jooBbNoeKq1PMsQkYX4nEsi2Sf8lARIOxTNJia49XaWvRrRCtVoOxpIyBOluiX3hoMNQajjLXPGmzH%2FC3VwkUnkCu4o%2BsnSVTc0JbjwXmrZDkk50qF%2FwA%2FqsvNjMPLqm4kXGrYvhlQioBQBAAA%3D

SWC Info output

No response

Expected behavior

JscTarget in @swc/wasm-web is the same as JscTarget in @swc/types and have "esnext".

Actual behavior

export type JscTarget =
  | "es3"
  | "es5"
  | "es2015"
  | "es2016"
  | "es2017"
  | "es2018"
  | "es2019"
  | "es2020"
  | "es2021"
  | "es2022";

Version

1.7.18

Additional context

No response

@kdy1 kdy1 added this to the Planned (Low priority) milestone Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants