Skip to content

Commit 1e93a44

Browse files
committed
chore: compile project to Node 8.3 using @babel/preset-env
1 parent 38792e9 commit 1e93a44

File tree

3 files changed

+384
-39
lines changed

3 files changed

+384
-39
lines changed

babel.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: [
3+
'@babel/preset-flow',
4+
'@babel/preset-react',
5+
[
6+
'@babel/preset-env',
7+
{
8+
targets: {
9+
node: '8.3',
10+
},
11+
bugfixes: true,
12+
},
13+
],
14+
],
315
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"devDependencies": {
2222
"@babel/cli": "^7.8.4",
2323
"@babel/core": "^7.9.0",
24+
"@babel/preset-env": "^7.9.6",
25+
"@babel/preset-flow": "^7.9.0",
26+
"@babel/preset-react": "^7.9.4",
2427
"@callstack/eslint-config": "^10.0.0",
2528
"@release-it/conventional-changelog": "^1.1.0",
2629
"@testing-library/jest-native": "~3.1.0",
@@ -34,7 +37,6 @@
3437
"flow-bin": "^0.122.0",
3538
"flow-copy-source": "^2.0.9",
3639
"jest": "^26.0.1",
37-
"metro-react-native-babel-preset": "^0.58.0",
3840
"react": "^16.13.1",
3941
"react-native": "^0.63.0-rc.1",
4042
"react-test-renderer": "^16.13.1",

0 commit comments

Comments
 (0)