swc icon indicating copy to clipboard operation
swc copied to clipboard

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

Open catloversg opened this issue 1 year ago • 0 comments

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

catloversg avatar Aug 24 '24 15:08 catloversg