Skip to content

Commit

Permalink
Disable comparisons feature in uglify compression in production (face…
Browse files Browse the repository at this point in the history
…book#2379)

* Disable a micro-option in uglify that appears to be buggy

See facebook#2376

* wrong plugin

* Add a comment
  • Loading branch information
davidascher authored and romaindso committed Jul 10, 2017
1 parent c86ffb6 commit f4d31b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ module.exports = {
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
// Disabled because of an issue with Uglify breaking seemingly valid code:
// https://github.com/facebookincubator/create-react-app/issues/2376
// Pending further investigation:
// https://github.com/mishoo/UglifyJS2/issues/2011
comparisons: false,
},
output: {
comments: false,
Expand Down

0 comments on commit f4d31b8

Please sign in to comment.