Skip to content

Commit ba8d5ba

Browse files
committed
update build to corejs@3
1 parent 0626ea9 commit ba8d5ba

File tree

5 files changed

+30
-39
lines changed

5 files changed

+30
-39
lines changed

dash-renderer/.babelrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react"],
3-
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
2+
"presets": [["@babel/preset-env", {
3+
"useBuiltIns": "usage",
4+
"corejs": 3
5+
}], "@babel/preset-react"]
46
}

dash-renderer/package-lock.json

Lines changed: 23 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash-renderer/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@
3636
},
3737
"devDependencies": {
3838
"@babel/core": "^7.6.0",
39-
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
40-
"@babel/polyfill": "^7.6.0",
4139
"@babel/preset-env": "^7.6.0",
4240
"@babel/preset-react": "^7.0.0",
4341
"@svgr/webpack": "^4.1.0",
4442
"babel-eslint": "^10.0.3",
4543
"babel-loader": "^8.0.6",
44+
"core-js": "3.2.1",
4645
"css-loader": "^3.2.0",
4746
"eslint": "^5.15.3",
4847
"eslint-config-airbnb": "^17.1.0",

dash-renderer/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const defaultOptions = {
88
mode: 'development',
99
devtool: 'none',
1010
entry: {
11-
main: ['@babel/polyfill', 'whatwg-fetch', './src/index.js'],
11+
main: ['whatwg-fetch', './src/index.js'],
1212
},
1313
output: {
1414
path: path.resolve(__dirname, dashLibraryName),

dash-renderer/webpack.serve.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const config = require('./webpack.config.js');
33
config.entry = {main: './src/demo/index.js'};
44
config.output = {filename: 'output.js'};
55
config.mode = 'development';
6-
config.externals = undefined; // eslint-disable-line
6+
config.externals = undefined;
77
config.devtool = 'inline-source-map';
88
module.exports = config;

0 commit comments

Comments
 (0)