-
Notifications
You must be signed in to change notification settings - Fork 96
Only the last argument of a name in a CallExpression is transformed correctly. #91
Comments
It looks like it's an issue with identifiers repeated as different args. |
Also, looks like #90 might solve this? |
The issue still exists after the merge of #90. |
Interesting. It's definitely finding and updating the references ( |
Yep, I can confirm it's finding all the references in _.each(binding.referencePaths, path => {
path.replaceWith(identifier);
}) \cc @hzoo |
Circling back... The issue appears to be a Babel cache of some kind. We memoize and reuse our identifier objects. However, as this issue shows, it can lead to |
Nice find! |
🙌 I'm not sure all the places that may need the clone, but we'll start out with |
Starting with this:
It will be transformed to this:
I'm not sure where the issue is here on this one.
The text was updated successfully, but these errors were encountered: