This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Issue with mangling imports #37
Labels
Comments
To possibly answer my own question. This issue was caused by the module importing widgetGroups. There was a naming conflict which did not throw a compiler error but silently changed variable names to non-conflicting ones. Here's a skeleton of the class:
Renaming the function widgetGroups to getWidgetGroups solved it. |
Do you think you can whip up a failing test from this? |
Trying to migrate from react-hot-loader to this stuff, I have the same issue. I wrote a fixture to reproduce: BenoitZugmeyer@6ec563b |
Thanks. If you can take time to try to fix it I'd appreciate. :-) |
I can’t reproduce this in 2.x. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a problem with imports when using react-transform and am not quite sure if this is created by react-transform or babel itself or even something I am doing wrong in my config.
In my source file, I am importing a file like this:
Without react-transform, babel translates it to:
Whereas with react-transform, I get:
This obviously cannot work and throws an error.
The text was updated successfully, but these errors were encountered: