Use babel-core 7.5+ in new RN Apps

Summary:
We are running into some problems with the spread operator. The solution is to ask for a newer minimum babel version.

See https://github.com/babel/babel/issues/10179

Note: this doesn't actually change behavior. When creating a new app a new babel version will already be used. This simply ensures that the minimum version fulfills the requirements.

Reviewed By: axe-fb

Differential Revision: D16181111

fbshipit-source-id: f5207318b3a7bd9f092c0e64a8065d0f713012da
This commit is contained in:
Christoph Nakazawa
2019-07-10 07:12:58 -07:00
committed by Facebook Github Bot
parent 0b5aa39671
commit ba03e4e7bb
+2 -2
View File
@@ -11,8 +11,8 @@
"react-native": "1000.0.0"
},
"devDependencies": {
"@babel/core": "^7.3.3",
"@babel/runtime": "^7.3.1",
"@babel/core": "^7.5.0",
"@babel/runtime": "^7.5.0",
"@react-native-community/eslint-config": "^0.0.3",
"babel-jest": "^24.1.0",
"jest": "^24.1.0",