andrey-skl / ng-annotate-loader

Webpack loader to annotate angular applications
MIT License
120 stars 28 forks source link

Annotations dont work when @ decorator is used in service #43

Open pranavkaushik9 opened 7 years ago

pranavkaushik9 commented 7 years ago

I have a class written in ES6 style which is then exposed as angular service Annotations are working fine until this class used @ decorator.

I am using mobx actions which requires methods to be decorated with @action. The moment I use @action inside my class annotations start breaking.

Is this a known issue?

Maximaximum commented 6 years ago

I have this issue too, and it's very pity :(

Maximaximum commented 6 years ago

It seems like we simply need to use this acorn plugin : https://github.com/angelozerr/acorn-es7 But how do we include it into the pipeline?