diff --git a/.babelrc b/.babelrc index bb0257a..338b1b3 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,9 @@ { "presets": [ - "@babel/preset-env", + ["@babel/preset-env", { + "useBuiltIns": "usage", + "corejs": 3, + }], "@babel/preset-react" ], "plugins": [ diff --git a/config/webpack.base.config.js b/config/webpack.base.config.js index 26d5764..ea1d20a 100644 --- a/config/webpack.base.config.js +++ b/config/webpack.base.config.js @@ -13,7 +13,7 @@ module.exports = env => { const { PLATFORM, VERSION } = env; return merge([ { - entry: ['@babel/polyfill', APP_DIR], + entry: APP_DIR, module: { rules: [ { @@ -38,7 +38,7 @@ module.exports = env => { template: './src/index.html', filename: './index.html' }), - new webpack.DefinePlugin({ + new webpack.DefinePlugin({ 'process.env.VERSION': JSON.stringify(env.VERSION), 'process.env.PLATFORM': JSON.stringify(env.PLATFORM) }), diff --git a/package.json b/package.json index 5699081..8aa027c 100644 --- a/package.json +++ b/package.json @@ -28,63 +28,63 @@ ] }, "dependencies": { - "@material-ui/core": "^3.0.0", - "@material-ui/icons": "^3.0.0", - "axios": "^0.18.0", - "bootstrap": "^4.1.1", - "express": "^4.16.3", - "prop-types": "^15.6.2", - "react": "^16.6.0", - "react-dom": "^16.6.0", - "react-redux": "^5.0.7", - "react-router-dom": "^4.3.1", - "react-transition-group": "^2.4.0", - "redux": "^4.0.0", + "@material-ui/core": "^4.2.1", + "@material-ui/icons": "^4.2.1", + "axios": "^0.19.0", + "bootstrap": "^4.3.1", + "express": "^4.17.1", + "prop-types": "^15.7.2", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-redux": "^7.1.0", + "react-router-dom": "^5.0.1", + "react-transition-group": "^4.2.1", + "redux": "^4.0.4", "redux-thunk": "^2.3.0", - "styled-components": "^3.3.3" + "styled-components": "^4.3.2" }, "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-export-namespace-from": "^7.0.0", - "@babel/plugin-proposal-throw-expressions": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/polyfill": "^7.0.0-beta.51", - "@babel/preset-env": "^7.0.0-beta.51", - "@babel/preset-react": "^7.0.0-beta.51", - "babel-core": "^7.0.0-bridge.0", - "babel-eslint": "^8.2.3", - "babel-jest": "^23.4.2", - "babel-loader": "^8.0.0-beta.0", - "copy-webpack-plugin": "^4.5.1", - "css-loader": "^0.28.11", - "enzyme": "^3.3.0", - "enzyme-adapter-react-16": "^1.1.1", - "eslint": "^4.19.1", - "eslint-config-airbnb": "^17.0.0", - "eslint-config-jest-enzyme": "^6.0.2", - "eslint-plugin-babel": "^5.1.0", - "eslint-plugin-import": "^2.12.0", - "eslint-plugin-jest": "^21.18.0", - "eslint-plugin-jsx-a11y": "^6.0.3", - "eslint-plugin-prettier": "^2.6.0", - "eslint-plugin-react": "^7.9.1", + "@babel/core": "^7.5.5", + "@babel/plugin-proposal-class-properties": "^7.5.5", + "@babel/plugin-proposal-export-namespace-from": "^7.5.2", + "@babel/plugin-proposal-throw-expressions": "^7.2.0", + "@babel/plugin-syntax-dynamic-import": "^7.2.0", + "@babel/preset-env": "^7.5.5", + "@babel/preset-react": "^7.0.0", + "babel-core": "^6.26.3", + "babel-eslint": "^10.0.2", + "babel-jest": "^24.8.0", + "babel-loader": "^8.0.6", + "copy-webpack-plugin": "^5.0.4", + "core-js": "3", + "css-loader": "^3.1.0", + "enzyme": "^3.10.0", + "enzyme-adapter-react-16": "^1.14.0", + "eslint": "^6.1.0", + "eslint-config-airbnb": "^17.1.1", + "eslint-config-jest-enzyme": "^7.0.2", + "eslint-plugin-babel": "^5.3.0", + "eslint-plugin-import": "^2.18.2", + "eslint-plugin-jest": "^22.14.0", + "eslint-plugin-jsx-a11y": "^6.2.3", + "eslint-plugin-prettier": "^3.1.0", + "eslint-plugin-react": "^7.14.3", "html-webpack-plugin": "^3.2.0", - "husky": "^1.1.2", - "jest": "^23.4.2", - "lint-staged": "^7.3.0", - "mini-css-extract-plugin": "^0.4.3", - "node-sass": "^4.8.3", - "optimize-css-assets-webpack-plugin": "^4.0.0", - "prettier": "^1.14.3", - "react-test-renderer": "^16.4.1", - "sass-loader": "^7.0.3", - "style-loader": "^0.21.0", - "uglifyjs-webpack-plugin": "^1.2.5", - "webpack": "4.28.4", - "webpack-cli": "^3.2.3", - "webpack-dev-server": "^3.1.14", - "webpack-merge": "^4.1.3", + "husky": "^3.0.1", + "jest": "^24.8.0", + "lint-staged": "^9.2.1", + "mini-css-extract-plugin": "^0.8.0", + "node-sass": "^4.12.0", + "optimize-css-assets-webpack-plugin": "^5.0.3", + "prettier": "^1.18.2", + "react-test-renderer": "^16.8.6", + "sass-loader": "^7.1.0", + "style-loader": "^0.23.1", + "uglifyjs-webpack-plugin": "^2.1.3", + "webpack": "^4.38.0", + "webpack-cli": "^3.3.6", + "webpack-dev-server": "^3.7.2", + "webpack-merge": "^4.2.1", "webpack-visualizer-plugin": "^0.1.11" } }