-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Describe the bug
class Test {
@test()
declare protected a: A;
}
The output of swc_ecma_transforms_typescript is
class Test {}
While in ts and swc, the output is
class Test {
}
__decorate([
test()
], Test.prototype, "a", void 0);
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
Not sure should declare ClassProperty with decorators be kept.
Actual behavior
No response
Version
swc_ecma_transforms_typescript 33.0.0
Additional context
No response