Skip to content

Commit 78ac0c1

Browse files
gaearonromaindso
authored andcommitted
Disable Uglify reduce_vars (facebook#2200)
1 parent 32288d0 commit 78ac0c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ module.exports = {
280280
new webpack.optimize.UglifyJsPlugin({
281281
compress: {
282282
warnings: false,
283+
// This feature has been reported as buggy a few times, such as:
284+
// https://github.com/mishoo/UglifyJS2/issues/1964
285+
// We'll wait with enabling it by default until it is more solid.
286+
reduce_vars: false,
283287
},
284288
output: {
285289
comments: false,

0 commit comments

Comments
 (0)