Skip to content

Commit

Permalink
Disable comparisons feature in uglify compression in production (#2379)
Browse files Browse the repository at this point in the history
* Disable a micro-option in uglify that appears to be buggy

See #2376

* wrong plugin

* Add a comment
  • Loading branch information
davidascher authored and gaearon committed May 27, 2017
1 parent c1ba38d commit f6d8544
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 f6d8544

Please sign in to comment.