chore: upgrade deps

This commit is contained in:
Haishan 2019-03-12 23:48:37 +08:00
parent 5b51781ee7
commit 5812bed54a
5 changed files with 554 additions and 598 deletions

View file

@ -5,7 +5,9 @@ const presets = [
'@babel/preset-env', '@babel/preset-env',
{ {
modules: false, modules: false,
useBuiltIns: 'usage', // see also zloirock/core-js https://bit.ly/2JLnrgw
useBuiltIns: 'entry',
corejs: 3,
targets: { targets: {
browsers: ['>0.25%', 'not ie 11', 'not op_mini all'] browsers: ['>0.25%', 'not ie 11', 'not op_mini all']
} }
@ -26,11 +28,7 @@ const plugins = [
} }
], ],
'@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
'@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-do-expressions' '@babel/plugin-proposal-do-expressions'
]; ];

View file

@ -28,26 +28,27 @@
"private": true, "private": true,
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.2.3",
"@babel/runtime": "^7.1.5", "@babel/runtime": "^7.1.5",
"@hsjs/react-cache": "0.0.0-alpha.aa94237", "@hsjs/react-cache": "0.0.0-alpha.aa94237",
"@sentry/browser": "^4.4.2", "@sentry/browser": "^4.4.2",
"chart.js": "^2.7.3", "chart.js": "^2.7.3",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"core-js": "^3.0.0",
"history": "^4.7.2", "history": "^4.7.2",
"invariant": "^2.2.4", "invariant": "^2.2.4",
"lodash-es": "^4.17.11", "lodash-es": "^4.17.11",
"memoize-one": "^5.0.0", "memoize-one": "^5.0.0",
"modern-normalize": "^0.5.0", "modern-normalize": "^0.5.0",
"prop-types": "^15.5.10", "prop-types": "^15.5.10",
"react": "16.8.3", "react": "^16.8.4",
"react-dom": "16.8.3", "react-dom": "^16.8.4",
"react-modal": "^3.8.1", "react-modal": "^3.8.1",
"react-router-dom": "4.4.0-beta.7", "react-router-dom": "4.4.0-beta.7",
"react-window": "^1.5.0", "react-window": "^1.5.0",
"redux": "^4.0.1", "redux": "^4.0.1",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0", "redux-thunk": "^2.2.0",
"regenerator-runtime": "^0.13.2",
"reselect": "^4.0.0", "reselect": "^4.0.0",
"whatwg-fetch": "^3.0.0" "whatwg-fetch": "^3.0.0"
}, },
@ -55,18 +56,14 @@
"@babel/core": "^7.1.5", "@babel/core": "^7.1.5",
"@babel/plugin-proposal-class-properties": "^7.2.3", "@babel/plugin-proposal-class-properties": "^7.2.3",
"@babel/plugin-proposal-do-expressions": "^7.0.0", "@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0", "@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.2.3", "@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"autoprefixer": "^9.4.3", "autoprefixer": "^9.4.3",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5", "babel-loader": "^8.0.5",
"clean-webpack-plugin": "^1.0.0", "clean-webpack-plugin": "^2.0.0",
"copy-webpack-plugin": "^5.0.0", "copy-webpack-plugin": "^5.0.0",
"css-loader": "^2.0.1", "css-loader": "^2.0.1",
"cssnano": "^4.1.7", "cssnano": "^4.1.7",

View file

@ -1,3 +1,5 @@
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'modern-normalize/modern-normalize.css'; import 'modern-normalize/modern-normalize.css';
import React from 'react'; import React from 'react';

View file

@ -25,7 +25,6 @@ const svgSpriteRule = {
// ---- entry // ---- entry
const entry = { const entry = {
// app: ['whatwg-fetch', '@babel/polyfill', './src/app.js']
app: ['whatwg-fetch', './src/app.js'] app: ['whatwg-fetch', './src/app.js']
}; };
@ -68,13 +67,7 @@ plugins.push(definePlugin);
plugins.push(new CopyPlugin([{ from: 'assets/*', flatten: true }])); plugins.push(new CopyPlugin([{ from: 'assets/*', flatten: true }]));
if (!isDev) { if (!isDev) {
plugins.push( plugins.push(new CleanPlugin());
new CleanPlugin(['**/*'], {
root: path.join(__dirname, 'public'),
verbose: false,
beforeEmit: true
})
);
} }
let devtool; let devtool;

1120
yarn.lock

File diff suppressed because it is too large Load diff