Updated babel, updated polyfill definitions to include only modern browsers.

Webpack size is now 2.39MiB
This commit is contained in:
Ace Pace 2020-04-29 23:43:19 +03:00
parent c7a94beb0d
commit a645abd498
4 changed files with 3352 additions and 10494 deletions

View File

@ -1,10 +1,15 @@
{ {
"presets": [ "presets": [
"es2015", [
"stage-0", "@babel/preset-env",
"react" {
"useBuiltIns": "entry"
}
],
"@babel/preset-react"
], ],
"plugins": [ "plugins": [
"emotion" "emotion",
"@babel/plugin-proposal-class-properties"
] ]
} }

File diff suppressed because it is too large Load Diff

View File

@ -21,24 +21,22 @@
"repository": "", "repository": "",
"keywords": [], "keywords": [],
"author": "Guardicore", "author": "Guardicore",
"browserslist": "> 0.25%, not dead",
"devDependencies": { "devDependencies": {
"babel-cli": "^6.26.0", "@babel/cli": "^7.8.4",
"babel-core": "^6.26.3", "@babel/core": "^7.9.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.0",
"@babel/runtime": "^7.9.6",
"babel-eslint": "^8.2.6", "babel-eslint": "^8.2.6",
"babel-loader": "^7.1.5", "babel-loader": "^8.0.0",
"babel-plugin-lodash": "^3.3.4",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.5.0",
"bower-webpack-plugin": "^0.1.9",
"chai": "^4.2.0", "chai": "^4.2.0",
"copyfiles": "^2.2.0", "copyfiles": "^2.2.0",
"css-loader": "^1.0.1", "css-loader": "^1.0.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0", "eslint": "^6.8.0",
"eslint": "^5.16.0", "eslint-loader": "^4.0.1",
"eslint-loader": "^2.2.1",
"eslint-plugin-react": "^7.19.0", "eslint-plugin-react": "^7.19.0",
"file-loader": "^1.1.11", "file-loader": "^1.1.11",
"glob": "^7.1.6", "glob": "^7.1.6",
@ -52,7 +50,6 @@
"karma-phantomjs-launcher": "^1.0.0", "karma-phantomjs-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.5", "karma-sourcemap-loader": "^0.3.5",
"karma-webpack": "^3.0.5", "karma-webpack": "^3.0.5",
"lodash-webpack-plugin": "^0.11.5",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"null-loader": "^0.1.1", "null-loader": "^0.1.1",
@ -68,6 +65,7 @@
"webpack-dev-server": "^3.10.3" "webpack-dev-server": "^3.10.3"
}, },
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.8.0",
"@emotion/core": "^10.0.22", "@emotion/core": "^10.0.22",
"@fortawesome/fontawesome-svg-core": "^1.2.25", "@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-regular-svg-icons": "^5.11.2", "@fortawesome/free-regular-svg-icons": "^5.11.2",

View File

@ -1,7 +1,7 @@
import '@babel/polyfill';
import 'core-js/fn/object/assign'; import 'core-js/fn/object/assign';
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import 'babel-polyfill';
import App from './components/Main'; import App from './components/Main';
import Bootstrap from 'bootstrap/dist/css/bootstrap.css'; // eslint-disable-line no-unused-vars import Bootstrap from 'bootstrap/dist/css/bootstrap.css'; // eslint-disable-line no-unused-vars