Since version 1.2.175, there is a bug in swc's legacyDecorator #6943
-
In version 1.2.174, if I set transform.legacyDecorator, the decorator input parameter has the descriptor & descriptor.initializer attribute, which behaves the same as the babel configuration plugin ['@babel/plugin-proposal-decorators', { 'legacy': true }]. version 1.2.174 link expectation |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@kdy1 Thank you very much if you could take some time out of your busy schedule to look at this question. |
Beta Was this translation helpful? Give feedback.
-
Our project also relies on the initializer passed to decorator. @kdy1 Could you please consider providing the old behaviour as an option? I know the decorator stuff is complicated, there're three models:
However, the spec one has not reached to stage4 yet, so actually the current echo still use TypeScript or Babel model. |
Beta Was this translation helpful? Give feedback.
-
Closing as this is not a bug |
Beta Was this translation helpful? Give feedback.
#7291 look this, author have no plan to support it.