Please add pointer to babel-plugin-transform-decorators-legacy for users of Babel 6.x
Closed this issue · 3 comments
ES decorators are about to change. Currently, we must use the legacy ES2015 decorators.
Support for these decorators is provided by the interim package published by loganfsmyth:
babel-plugin-transform-decorators-legacy.
We already have a note in the README about the upcoming change, but I'd prefer not to link to a third party, unofficial package. I'd rather just continue the current recommendation until upstream Babel gets either implementation of the spec.
Definitely interested in your thoughts though.
Closing due to inactivity. Still interested in your thoughts.
@jayphelps Well, loganfsmyth is actively involved in the babel project so I believe him to be the go-to guy when it comes to babel. However, you are correct in that the plugin handles decorators differently from babel 5.x. According to loganfsmyth the implementation of babel 5.x does not stick to the specification. I will try out core-decorators and have a look at the existing tests and why they fail with the plugin. Other than that, I cannot think of anything 😁