Repository navigation
Mangle top level names in helpers - #18397
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/62519 |
|
commit: |
1a8505d to
409ca08
Compare
|
Although typically we wrap each helper within a closure so mangling top level names is safe, we do have a We could let |
|
That seems like a risk with the current setup already, since nothing prevents us from re-using the same top level names. What if I made babel-external-helpers prefix non-exported variable names with the default export name? |
|
Actually, when injecting names we can just check if they conflict with the previous ones. I pushed a fix. |
Fixes #1, Fixes #2