Skip to content

Commit 5e0918d

Browse files
authored
Upgrade @babel/runtime-corejs2 to @babel/runtime-corejs3 (#142)
1 parent 0229b0b commit 5e0918d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.babelrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[
44
"@babel/preset-env",
55
{
6+
"corejs": 3,
7+
"useBuiltIns": "usage",
68
"exclude": [
79
"transform-async-to-generator",
810
"transform-regenerator"
@@ -21,7 +23,12 @@
2123
"@babel/plugin-proposal-class-properties",
2224
"@babel/plugin-proposal-object-rest-spread",
2325
"babel-plugin-lodash",
24-
"@babel/plugin-transform-runtime"
26+
[
27+
"@babel/plugin-transform-runtime",
28+
{
29+
"corejs": 3
30+
}
31+
]
2532
],
2633
"env": {
2734
"coverage": {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"chai": "^4.1.0",
7979
"coffee-script": "^1.11.1",
8080
"commander": "2.11.0",
81+
"core-js": "^3.0.0",
8182
"cross-env": "6.0.3",
8283
"css-loader": "^5.0.1",
8384
"del": "5.1.0",
@@ -109,7 +110,7 @@
109110
"worker-loader": "^3.0.5"
110111
},
111112
"dependencies": {
112-
"@babel/runtime-corejs2": "^7.0.0",
113+
"@babel/runtime-corejs3": "^7.0.0",
113114
"chalk": "^2.4.2",
114115
"chokidar": "^3.5.2",
115116
"glob-parent": "5.1.2",

0 commit comments

Comments
 (0)