-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
rootMode: 'upward' for @babel/register? #54
Comments
hm, I think this would be a breaking change for people that were expecting only their root Thoughts? |
I think no, as the doc says,
So there stills only one
So for the people that were expecting only their The change happens for the people (us) who don't have |
If it "stops" at the first found |
Maybe it's more reliable with code?
|
@ljqx I'm looking into this deeper and I'm wondering if we should use |
It also seems like if you don't have a |
cc @hzoo - maybe you can give more insights. |
@ljqx now that we have proper tests on this repo, I made the change you are suggesting and the tests are failing when users are using a edit: |
I'd also like to add a test to the suite but I think that might collide with the .babelrc test. |
@phated hmm, yeah, seems for people who don't have And both So seems no option equivalent to previous one in Babel 6 ( |
Hi, Gulp team,
We are upgrading Babel to 7. And as we were using
gulp.babel.js
, so now we are moving frombabel/register
to@babel/register
too.But Babel 7 has a different way to find the config file.
As we are using a monorepo, now inside subpackage, we cannot run
gulp
anymore as@babel/register
cannot find the babel config file outside ofcwd
.So I think it's better here
interpret
can setrootMode: 'upward'
as suggested by Babel team to keep same experience as before. Now as the user of gulp we have no access of@babel/register
options so seems here it's the best place to do the fix.Thanks,
The text was updated successfully, but these errors were encountered: