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
I've run into a bug where if a class method has the same name as an import, prefixed with an underscore, it shadows the import with the similar name. Brief example:
importnowfrom'lodash/now'constf=function($log){'ngInject'classC{_now(){// This line ends up referring to the method containing it.now()}}returnC}
Note that this uses babel 7. I've tried pulling in the changes from #43 but they don't seem to help anything.
I'm happy to try to fix this if I can get some guidance. In particular, I'm not sure if this is actually a bug in this plugin or if it's merely a symptom of some issue within babel itself.
The text was updated successfully, but these errors were encountered:
I've run into a bug where if a class method has the same name as an import, prefixed with an underscore, it shadows the import with the similar name. Brief example:
I've created a full reproduction case with more information here: https://github.com/edsrzf/babel-angularjs-repro
Note that this uses babel 7. I've tried pulling in the changes from #43 but they don't seem to help anything.
I'm happy to try to fix this if I can get some guidance. In particular, I'm not sure if this is actually a bug in this plugin or if it's merely a symptom of some issue within babel itself.
The text was updated successfully, but these errors were encountered: