This implements #38 by removing "ngInject" prologue directives while we process. In accordance with https://github.com/schmod/babel-plugin-angularjs-annotate/issues/38#issuecomment-357706985, which asks that multiple passes through the transform and minifier still work, I didn't remove "ngNoInject" directives, since they are there to prevent the automatic annotation. Multiple runs through minifiers should be OK, since the $inject has already been generated and won't be further minified.
This implements #38 by removing
"ngInject"
prologue directives while we process. In accordance with https://github.com/schmod/babel-plugin-angularjs-annotate/issues/38#issuecomment-357706985, which asks that multiple passes through the transform and minifier still work, I didn't remove"ngNoInject"
directives, since they are there to prevent the automatic annotation. Multiple runs through minifiers should be OK, since the$inject
has already been generated and won't be further minified.