Skip to content

Commit

Permalink
Merge pull request #38 from seeliang/chore--babel-update
Browse files Browse the repository at this point in the history
Chore  babel update
  • Loading branch information
seeliang authored Jan 11, 2020
2 parents f9da77f + 3900cc1 commit 38fc41b
Show file tree
Hide file tree
Showing 5 changed files with 10,756 additions and 2,644 deletions.
5 changes: 2 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"presets": [
"es2015",
"stage-2",
"react"
"@babel/preset-env",
"@babel/preset-react"
]
}
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,24 @@
"homepage": "https://github.com/seeliang/react-redux-router#readme",
"devDependencies": {
"@babel/core": "^7.7.7",
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.7.4",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"babel-preset-es2015": "^6.24.0",
"babel-preset-react": "^6.23.0",
"babel-preset-stage-2": "^6.22.0",
"eslint": "^4.4.1",
"eslint-plugin-react": "^7.2.1",
"eslint": "^6.8.0",
"eslint-plugin-react": "^7.17.0",
"gulp": "4",
"gulp-clean": "^0.3.2",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.6.1",
"gulp4-run-sequence": "*",
"jest": "^20.0.4",
"jest": "^24.9.0",
"react-test-renderer": "^16.12.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1",
"webpack-stream": "^4.0.0"
"webpack-stream": "^5.2.1"
},
"dependencies": {
"axios": "^0.16.2",
Expand Down
7 changes: 3 additions & 4 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
2.add gzip when it is necessary
https://github.com/webpack-contrib/compression-webpack-plugin
*/
const

const UglifyJsPlugin = require('uglifyjs-webpack-plugin'),
base = require('./webpack.base.js'),
prod = {
devtool: 'nosources-source-map',
optimization: {
minimize: true
}
plugins: [new UglifyJsPlugin()]
};

module.exports = Object.assign(base, prod);
Loading

0 comments on commit 38fc41b

Please sign in to comment.