Skip to content

Commit

Permalink
Specify ecma version (facebook#3743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jan 15, 2018
1 parent 42e712a commit 0e57bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ module.exports = {
// Minify the code.
new UglifyJsPlugin({
uglifyOptions: {
ecma: 5,
compress: {
warnings: false,
// Disabled because of an issue with Uglify breaking seemingly valid code:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"react-dev-utils": "^5.0.0",
"style-loader": "0.19.0",
"sw-precache-webpack-plugin": "0.11.4",
"uglifyjs-webpack-plugin": "1.1.4",
"uglifyjs-webpack-plugin": "1.1.6",
"url-loader": "0.6.2",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
Expand Down

0 comments on commit 0e57bbc

Please sign in to comment.