Skip to content

Commit 449fe67

Browse files
author
Michael Mifsud
committed
Upgrade to babel 7
Unblock consumers updating to Babel 7 which patches some bugs that can prevent some users updating to Node 10.
1 parent 7d88b83 commit 449fe67

File tree

8 files changed

+2609
-2077
lines changed

8 files changed

+2609
-2077
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
"code",
9090
"test"
9191
]
92+
},
93+
{
94+
"login": "xzyfer",
95+
"name": "Michael Mifsud",
96+
"avatar_url": "https://avatars2.githubusercontent.com/u/579928?v=4",
97+
"profile": "https://github.com/xzyfer",
98+
"contributions": [
99+
"code"
100+
]
92101
}
93102
],
94103
"repoType": "github"

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": [["env", { "targets": { "node": "4" } }], "flow"]
2+
"presets": [["@babel/preset-env", { "targets": { "node": "4" } }], "@babel/preset-flow"]
33
}

examples/with-flow/.babelrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"presets": [
3-
["env", {
3+
["@bable/preset-env", {
44
"targets": {
55
"browsers": ["last 2 versions", "safari >= 7"]
66
}
77
}],
8-
"react"
8+
"@babel/preset-react"
99
],
1010
"plugins": [
11-
"transform-class-properties",
11+
"@babel/plugin-proposal-class-properties",
1212
["react-intl-auto", {
1313
"removePrefix": "app/"
1414
}]
1515
]
1616
}
17-

examples/with-flow/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@
1212
"react-intl": "^2.4.0"
1313
},
1414
"devDependencies": {
15-
"babel-cli": "^6.26.0",
16-
"babel-loader": "^7.1.2",
15+
"@babel/cli": "^7.0.0",
16+
"@babel/core": "^7.0.0",
17+
"@babel/plugin-proposal-class-properties": "^7.0.0",
18+
"@babel/preset-env": "^7.0.0",
19+
"@babel/preset-react": "^7.0.0",
20+
"babel-loader": "^8.0.0",
1721
"babel-plugin-react-intl": "^2.3.1",
1822
"babel-plugin-react-intl-auto": "*",
19-
"babel-plugin-transform-class-properties": "^6.24.1",
20-
"babel-preset-env": "^1.6.0",
21-
"babel-preset-react": "^6.24.1",
2223
"extract-react-intl": "^0.3.1",
2324
"extract-react-intl-messages": "^0.6.0",
2425
"flow-bin": "^0.54.1",
2526
"webpack": "^3.5.6",
2627
"webpack-dev-server": "^2.7.1",
27-
"write-json-file": "^2.2.0"
28+
"write-json-file": "^2.2.0",
29+
"@babel/preset-flow": "^7.0.0"
2830
}
2931
}

0 commit comments

Comments
 (0)