From fd2a800f768ee011d6d21bad38ce228ddfb9f70c Mon Sep 17 00:00:00 2001 From: Dan Abramov <dan.abramov@gmail.com> Date: Wed, 17 May 2017 23:24:07 +0100 Subject: [PATCH] Disable Uglify reduce_vars (#2200) --- packages/react-scripts/config/webpack.config.prod.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 96cc32f94..ac672a409 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -280,6 +280,10 @@ module.exports = { new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, + // This feature has been reported as buggy a few times, such as: + // https://github.com/mishoo/UglifyJS2/issues/1964 + // We'll wait with enabling it by default until it is more solid. + reduce_vars: false, }, output: { comments: false, -- GitLab