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
The use of swc transform in @modern-js/[email protected] has resulted in a change in the handling of class. When using the decorator syntax, the product behaves in a way that is not expected during runtime.
Should need to support behavior similar to typescript's useDefineForClassFields configuration.
Version
Details
The use of swc transform in @modern-js/[email protected] has resulted in a change in the handling of
class
. When using the decorator syntax, the product behaves in a way that is not expected during runtime.Should need to support behavior similar to typescript's
useDefineForClassFields
configuration.Related Links:
Handling of this configuration by swc and esbuild:
useDefineForClassFields
behavior swc-project/swc#6985--target=esnext --tsconfig-raw='{"compilerOptions": { "target": "es2021" }}'
will defaultuseDefineForClassFields
totrue
evanw/esbuild#2584Reproduce link
none
Reproduce Steps
Demo Code:
The text was updated successfully, but these errors were encountered: