-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Added support for babel.config.js #6911
Added support for babel.config.js #6911
Conversation
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.
Mind adding a changelog entry? :)
Added changelog entry. Thanks! :) |
Codecov Report
@@ Coverage Diff @@
## master #6911 +/- ##
==========================================
- Coverage 66.98% 66.98% -0.01%
==========================================
Files 250 250
Lines 10360 10365 +5
Branches 3 3
==========================================
+ Hits 6940 6943 +3
- Misses 3419 3421 +2
Partials 1 1
Continue to review full report at Codecov.
|
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.
Note that this just adds support in our cache busting - we already supported the config file for actual configuration of babel (as we just ask babel to do the transpilation for us)
@SimenB - Thanks for the comment, all I needed to do when migrating from |
Is it possible to access babel.config.js from a custom path? |
Yeah, using a custom transformer: https://jestjs.io/docs/en/tutorial-react#custom-transformers |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #6908
With the arrival of Babel 7.0.0 comes support for
.js
configuration files from Babel.See here for details.
This PR adds support for the new config file added by the Babel team.