You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to handle this case with 'babel-plugin-angularjs-annotate'. See reproduction here
Expected: $location is properly annotated
Actual: $location is renamed to _$location by @babel/plugin-proposal-class-properties transformer. Then babel-plugin-angularjs-annotate fails to handle it:
Possible solution: maybe babel-plugin-angularjs-annotate can automatically detect that argument was renamed with adding "_" and rename it back when constructing $inject?
The text was updated successfully, but these errors were encountered:
andrey-skl
added a commit
to andrey-skl/babel-plugin-angularjs-annotate
that referenced
this issue
Mar 16, 2021
babel/preset-env
Expected:
$location
is properly annotatedActual:
$location
is renamed to_$location
by@babel/plugin-proposal-class-properties
transformer. Thenbabel-plugin-angularjs-annotate
fails to handle it:Possible solution: maybe
babel-plugin-angularjs-annotate
can automatically detect that argument was renamed with adding "_" and rename it back when constructing $inject?The text was updated successfully, but these errors were encountered: