-
Notifications
You must be signed in to change notification settings - Fork 71
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 7 support #52
Comments
What's missing? |
I believe we will need to upgrade the dependencies to @7 babel-plugin-preval/package.json Lines 31 to 32 in b6eeba0
|
Sounds good. I'd be happy to accept a pull request for that 👍 |
I have been lazy. I have managed to use Babel 7 by monkey patching some part of this plugin. Basically, it was all about: -babel-registry
+@babel/registry |
@oliviertassinari is there anything else to do than just updating the version? |
Fix kentcdodds#52 by changing babel-register with @babel/register
It's straightforward. |
* Make it work with Babel 7 Closes #52 * Fix usage of babel register * Remove dependency on babel-register * fix: support any version of babel BREAKING CHANGE: We no longer run require('babel-register') so not all code will be transpiled with babel by preval. Some will, but it's advised to not write code that you want prevaled in a way that doesn't run in the version of node you're using
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Babel 7 is slowly rolling out. At some point, it would be great to add support for it.
The text was updated successfully, but these errors were encountered: