Skip to content

Commit c41fea8

Browse files
authored
1 parent 4cf4a4e commit c41fea8

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.babelrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ module.exports = api => {
4040
['@babel/plugin-proposal-class-properties', { loose: true }],
4141
'@babel/plugin-proposal-export-default-from',
4242
'@babel/plugin-proposal-export-namespace-from',
43-
['@babel/plugin-transform-runtime', { useESModules: !modules }],
43+
[
44+
'@babel/plugin-transform-runtime',
45+
{ useESModules: !modules, corejs: 2 }
46+
],
4447
'babel-plugin-dev-expression',
4548
modules && 'babel-plugin-add-module-exports',
4649
api.env() === 'test' && 'babel-plugin-istanbul'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"webpack": "^4.4.1"
115115
},
116116
"dependencies": {
117-
"@babel/runtime": "^7.0.0",
117+
"@babel/runtime-corejs2": "^7.0.0",
118118
"classnames": "^2.2.5",
119119
"dom-helpers": "^3.2.0",
120120
"invariant": "^2.2.4",

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,13 @@
672672
pirates "^4.0.0"
673673
source-map-support "^0.5.9"
674674

675+
"@babel/runtime-corejs2@^7.0.0":
676+
version "7.0.0"
677+
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.0.0.tgz#786711ee099c2c2af7875638866c1259eff30a8c"
678+
dependencies:
679+
core-js "^2.5.7"
680+
regenerator-runtime "^0.12.0"
681+
675682
"@babel/runtime@^7.0.0":
676683
version "7.0.0"
677684
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz#adeb78fedfc855aa05bc041640f3f6f98e85424c"

0 commit comments

Comments
 (0)