Skip to content

Commit 0cc63a2

Browse files
authored
add @babel/plugin-transform-runtime (#1479)
1 parent b3cdba2 commit 0cc63a2

File tree

3 files changed

+193
-11
lines changed

3 files changed

+193
-11
lines changed

babel.config.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
"@babel/plugin-proposal-class-properties",
1414
"@babel/plugin-proposal-export-default-from",
1515
"@babel/plugin-proposal-optional-chaining",
16-
"@babel/plugin-proposal-nullish-coalescing-operator"
16+
"@babel/plugin-proposal-nullish-coalescing-operator",
17+
["@babel/plugin-transform-runtime",
18+
{
19+
"regenerator": true
20+
}
21+
]
1722
]
1823
},
1924
"development": {
@@ -25,7 +30,12 @@
2530
"@babel/plugin-proposal-class-properties",
2631
"@babel/plugin-proposal-export-default-from",
2732
"@babel/plugin-proposal-optional-chaining",
28-
"@babel/plugin-proposal-nullish-coalescing-operator"
33+
"@babel/plugin-proposal-nullish-coalescing-operator",
34+
["@babel/plugin-transform-runtime",
35+
{
36+
"regenerator": true
37+
}
38+
]
2939
]
3040
},
3141
"es": {

packages/react-vis/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@babel/plugin-proposal-export-default-from": "^7.0.0",
6060
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
6161
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
62+
"@babel/plugin-transform-runtime": "^7.0.0",
6263
"@babel/preset-env": "^7.0.0",
6364
"@babel/preset-react": "^7.0.0",
6465
"@babel/register": "^7.0.0",

0 commit comments

Comments
 (0)