-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
In ts config
...
"experimentalDecorators": true,
...in ts code
class BigButton extends Button {
...
@someDecorator()
fun1() {}
...
}What to expect:
We hope the decorator will be compiled in target js file
Current:
In js file, the decorator only imported but not used
More info:
I try to write a babel plugin to handle the decorator, but when the babel visit the ClassMethod node, what I found:
- node.decorators is
null - the function name should be
fun1, but what I get is_fun1
But when I remove the transform-ui5 preset, all information is correct.
Metadata
Metadata
Assignees
Labels
No labels