-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
CLI Project Generator: Explicitly include a default .babelrc #7822
Conversation
Tests are failing on node 4 (npm 2). I think you have to add "babel-preset-react-native" to package.json for the generated project. It works on npm 3 because of flattened dependencies. |
@namuol updated the pull request. |
@namuol updated the pull request. |
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @bestander as a potential reviewer. Could you take a look please or cc someone with more context? |
Can we do to |
Sorry for delay :) |
Based on @bestander's last comment I think we should close this and revisit later if needed. Thanks for the contribution and caring about improving tests! |
So after looking at the related issue #7821, I think there must be an easy solution here. It sounds like @mkonicek doesn't want to modify the peer dependencies on initialization, so here's what I propose: What if we keep the default I don't think the issue should be ignored, though. There is precedent in Sorry if I'm being naive here, this is the first RN issue I've actively worked on. I also have a forked version without the peer dependency changes at https://github.com/tgoldenberg/react-native. @janicduplessis @namuol what do you think? |
Motivation
React Native projects nested inside babel-enabled projects can break unexpectedly due to misconfigured
.babelrc
in the parent project.See #7821 for details.
Test plan
Added a simple check to ensure the generator provides a
.babelrc
file by default.