Do not load root .babelrc#61
Conversation
🤔 |
|
Thanks @ykzts! What if we didn't add the conditional logic and just made this code apply for any version of babel? The reason that the code coverage isn't getting to 100% is because there's no test that runs both the Babel 6 and Babel 7 version of this code. I'm thinking that if we can just remove the condition and apply this to both then the code will be simpler and we wont have the coverage issue. |
|
Babel v6 can not specify |
|
@kentcdodds nice! |
|
Thanks for the ping @ykzts! I thought I'd merged this 😅 |
|
🎉 This PR is included in version 3.0.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What: Do not load root
.babelrcandbabel.config.jsin the run oftransformFromASTin Babel v7.Why: Without this change the Babel plugin will be loaded twice. (ref babel/babel#7911)
How: Set
babelrc: falseandconfigFile: false.