Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 9114aea

Browse files
davidascherwmonk
authored andcommitted
Disable comparisons feature in uglify compression in production (#2379)
* Disable a micro-option in uglify that appears to be buggy See facebook/create-react-app#2376 * wrong plugin * Add a comment
1 parent bfeb950 commit 9114aea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

+5
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ module.exports = {
266266
new webpack.optimize.UglifyJsPlugin({
267267
compress: {
268268
warnings: false,
269+
// Disabled because of an issue with Uglify breaking seemingly valid code:
270+
// https://github.com/facebookincubator/create-react-app/issues/2376
271+
// Pending further investigation:
272+
// https://github.com/mishoo/UglifyJS2/issues/2011
273+
comparisons: false,
269274
},
270275
output: {
271276
comments: false,

0 commit comments

Comments
 (0)