Repository navigation
Babel 6 upgrade - #683
Babel 6 upgrade#683
Conversation
|
Awesome 👍 Note that Babel 7 will be released soon and the upgrade should be easy in Preact's case. |
|
@developit this is good to go for review now |
| let j = api.jscodeshift; | ||
| let code = j(file.source); | ||
|
|
||
| code.findVariableDeclarators().filter(d => /^_i/.test(d.value.id.name)).renameTo('i'); |
There was a problem hiding this comment.
Slight chance this might collide with other variables, right? It's okay if it does, just wasn't sure if it was doing scope analysis to avoid it.
There was a problem hiding this comment.
Yes it would be possible if someone added a var with that prefix. No scope analysis.
I personally wouldn't add this mod at all. I just wanted to make the output identical.
|
So excited to have this at size parity! 💃 |
|
Changes Unknown when pulling d7f865b on gdub22:babel6 into ** on developit:master**. |
|
I'm in the process of adding custom element support ( |
|
Congrats 💃 |
Building & testing working 100%.
Diff with old babel 5 output: https://www.diffchecker.com/VmO4dPJbOutput is identical to babel 5 (via 1 added codemod)
TODO: