You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Describe the bug
The SWC emit for non-define (aka TypeScript's default) computed class properties is wrong.
Input code
Config
Expected behavior
The emitted JavaScript currently is:
I'd expect it to emit:
Version
The version of @swc/core:
1.2.34
Additional context
This doesn't happen when setting the
jsc.parser.syntax
toecmascript
:es2020
it emits the computed class property as is.Object.defineProperty
which probably goes through a different codepath.The text was updated successfully, but these errors were encountered: