Skip to content

Commit 7d04d52

Browse files
committed
babel 7
1 parent b321b95 commit 7d04d52

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.babelrc

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
22
"presets": [
3-
"react",
3+
"@babel/preset-react",
44
[
5-
"env",
5+
"@babel/preset-env",
66
{
7-
// "modules": false,
7+
"loose": true,
8+
"modules": false,
89
"targets": {
910
"browsers": [
1011
"> 5%"
1112
]
1213
}
1314
}
1415
],
15-
"stage-2"
16+
"@babel/preset-stage-2"
1617
],
1718
"plugins": [
18-
"transform-runtime",
19+
["@babel/plugin-transform-runtime", {
20+
"helpers": true,
21+
"polyfill": false,
22+
"regenerator": true,
23+
"moduleName": "@babel/runtime"
24+
}],
1925
// "styled-components",
2026
"lodash"
2127
]

0 commit comments

Comments
 (0)