-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Babel 6 upgrade #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: