File tree Expand file tree Collapse file tree 3 files changed +54
-475
lines changed Expand file tree Collapse file tree 3 files changed +54
-475
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- presets : [
3
- [ '@babel/preset-env' , { targets : { node : 8 } } ] ,
4
- '@babel/preset-flow' ,
5
- ] ,
2
+ presets : [ 'module:metro-react-native-babel-preset' ] ,
6
3
} ;
Original file line number Diff line number Diff line change 11
11
"devDependencies" : {
12
12
"@babel/cli" : " ^7.1.2" ,
13
13
"@babel/core" : " ^7.1.2" ,
14
- "@babel/preset-env" : " ^7.3.4" ,
15
- "@babel/preset-flow" : " ^7.0.0" ,
16
14
"@babel/runtime" : " ^7.1.2" ,
17
15
"@callstack/eslint-config" : " ^3.0.0" ,
18
16
"@types/react" : " ^16.7.11" ,
25
23
"flow-bin" : " ^0.94.0" ,
26
24
"flow-copy-source" : " ^2.0.2" ,
27
25
"jest" : " ^24.1.0" ,
26
+ "metro-react-native-babel-preset" : " ^0.50.0" ,
28
27
"react" : " ^16.8.3" ,
29
28
"react-native" : " ^0.58.6" ,
30
29
"react-test-renderer" : " ^16.8.3" ,
47
46
"release" : " release-it" ,
48
47
"prepublish" : " yarn build && yarn copy-flowtypes" ,
49
48
"copy-flowtypes" : " flow-copy-source --ignore __tests__/*.js src build" ,
50
- "build" : " rm -rf build; babel src --out-dir build --ignore 'src/__tests__/*'"
49
+ "build" : " rm -rf build; babel src --out-dir build --ignore 'src/__tests__/*'"
51
50
},
52
51
"jest" : {
53
52
"preset" : " react-native" ,
59
58
"greenkeeper" : {
60
59
"ignore" : [
61
60
" react" ,
62
- " react-test-renderer"
61
+ " react-test-renderer" ,
62
+ " metro-react-native-babel-preset"
63
63
]
64
64
},
65
65
"publishConfig" : {
You can’t perform that action at this time.
0 commit comments