shuhei / babel-plugin-angular2-annotations

A babel transformer plugin for Angular 2 annotations
80 stars 9 forks source link

refactor(babel-plugin): work with latest babel #4

Closed mgcrea closed 9 years ago

mgcrea commented 9 years ago

Had to refactor the plugin to work with latest babel. Might be interesting.

I haven't found a way to add parameters annotations back yet. Looks like we're stuck on https://github.com/babel/babel/issues/1351 for now.

PatrickJS commented 9 years ago

:+1:

mgcrea commented 9 years ago

Took the time to write a proper PR to babel regarding angular2 constructor decorators, but it got closed right away :sob: https://github.com/babel/babel/pull/2138. I'll maintain a fork until pluggable parsers are available.

shuhei commented 9 years ago

Thanks for your PR :smile:

So, the parameter decorators don't work with the latest babel now. I'll keep this open until some way to solve it become possible.

shuhei commented 9 years ago

Merging because the current master doesn't work with the current babel/angular. Thanks!