Open phyllisstein opened 7 years ago
Hey @phyllisstein! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
Hey there! I've been working to add Babili to a project of mine that uses
transform-react-inline-elements
and I'm running into a little trouble. When used in combination, the two are emitting code in which they've mangled a variable name, but then missed a reference later in the source and dropped in the original.I'm not totally sure if I can reproduce it in another repo, since I'm not totally sure what about my source is causing the issue, but I've created a Gist with the original and the transformed code here: https://gist.github.com/phyllisstein/8647c8c3089dfc9699e3a298b2f6d541. The assignment happens on
original.jsx:56
, and the reference is onoriginal.jsx:70
; the line that throws isminified.js:96
, after the mangled assignment onminified.js:90
.For the time being I've just removed the
transform-react-inline-elements
plugin, but if you all have any insight into the actual problem I'd be eager to hear it! Thanks in advance for taking a look.Configuration
Environment