Skip to content

Commit

Permalink
use corejs (#3263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Sep 6, 2018
1 parent 4cf4a4e commit c41fea8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ module.exports = api => {
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
['@babel/plugin-transform-runtime', { useESModules: !modules }],
[
'@babel/plugin-transform-runtime',
{ useESModules: !modules, corejs: 2 }
],
'babel-plugin-dev-expression',
modules && 'babel-plugin-add-module-exports',
api.env() === 'test' && 'babel-plugin-istanbul'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"webpack": "^4.4.1"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@babel/runtime-corejs2": "^7.0.0",
"classnames": "^2.2.5",
"dom-helpers": "^3.2.0",
"invariant": "^2.2.4",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,13 @@
pirates "^4.0.0"
source-map-support "^0.5.9"

"@babel/runtime-corejs2@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.0.0.tgz#786711ee099c2c2af7875638866c1259eff30a8c"
dependencies:
core-js "^2.5.7"
regenerator-runtime "^0.12.0"

"@babel/runtime@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz#adeb78fedfc855aa05bc041640f3f6f98e85424c"
Expand Down

0 comments on commit c41fea8

Please sign in to comment.