Uh oh!
There was an error while loading. Please reload this page.
CLI Project Generator: Explicitly include a default .babelrc - #7822
CLI Project Generator: Explicitly include a default .babelrc#7822namuol wants to merge 4 commits into
Conversation
ghost
commented
May 29, 2016
janicduplessis
commented
May 29, 2016
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. |
ghost
commented
May 29, 2016
@namuol updated the pull request. |
ghost
commented
Jun 1, 2016
@namuol updated the pull request. |
ghost
commented
Jul 1, 2016
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? |
bestander
commented
Jul 6, 2016
Can we do to |
bestander
commented
Jul 6, 2016
Sorry for delay :) |
mkonicek
commented
Sep 9, 2016
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! |
tgoldenberg
commented
Oct 27, 2016
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
.babelrcin the parent project.See #7821 for details.
Test plan
Added a simple check to ensure the generator provides a
.babelrcfile by default.