-
-
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
Different solution for babel-ignored files (#7765) #7800
Comments
I think #7797 is still better than what is in 24.0.0, since you'll get an error either way - the difference is we now give you an actionable error. That said, I do agree with your reasoning (duplicating config is bad). However, we currently implement skipping transforms via This is sorta similar to webpack aliases - we require you to copy them to @thymikee @jeysal @rubennorte thoughts here? |
We read quite a bunch of stuff from Babel already, so if there's a simple way to map |
We read the Babel configuration in both the |
@thymikee that's possible too, but we could do it in the |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
I am referring to the bug already reported here #7765
More specifically, I'm questioning the solution just merged via #7797
Problem
I believe that printing the warning is not a user-friendly solution to this. My reasoning for that is that in a Babel/Jest setup I have two concerns:
Jest shouldn't care about my babel configuration. I already define that in potentially numerous/complex
.babelrc/js
/overrides
/env
/ignore
.The change in the PR #7797 forces me to re-define a distilled (i.e. "effective") version of my include/eclude/ignore configuration for Jest.
Proposed solution
I believe that
loadBabelConfig()
returningnull
indicates that Babel decided to explicitly not transpile a file.(I was trying to add this to the PR before the merge but was minutes too late. Let's see, maybe I'm mistaken here)
The text was updated successfully, but these errors were encountered: