Skip to content

Commit 35fcbb8

Browse files
committed
Upgrade to Babel 7
1 parent df33799 commit 35fcbb8

File tree

3 files changed

+2215
-601
lines changed

3 files changed

+2215
-601
lines changed

.babelrc

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
{
2-
"presets": ["es2015-loose", "stage-0", "react"],
2+
"presets": [
3+
"@babel/env",
4+
"@babel/preset-react"
5+
],
36
"plugins": [
4-
"transform-decorators-legacy"
7+
[
8+
"@babel/plugin-proposal-decorators",
9+
{
10+
"legacy": true
11+
}
12+
],
13+
"@babel/plugin-syntax-dynamic-import",
14+
"@babel/plugin-syntax-import-meta",
15+
"@babel/plugin-proposal-class-properties",
16+
"@babel/plugin-proposal-json-strings",
17+
"@babel/plugin-proposal-function-sent",
18+
"@babel/plugin-proposal-export-namespace-from",
19+
"@babel/plugin-proposal-numeric-separator",
20+
"@babel/plugin-proposal-throw-expressions",
21+
"@babel/plugin-proposal-export-default-from",
22+
"@babel/plugin-proposal-logical-assignment-operators",
23+
"@babel/plugin-proposal-optional-chaining",
24+
[
25+
"@babel/plugin-proposal-pipeline-operator",
26+
{
27+
"proposal": "minimal"
28+
}
29+
],
30+
"@babel/plugin-proposal-nullish-coalescing-operator",
31+
"@babel/plugin-proposal-do-expressions",
32+
"@babel/plugin-proposal-function-bind"
533
]
634
}

0 commit comments

Comments
 (0)