Skip to content

Commit fd2a800

Browse files
authored
Disable Uglify reduce_vars (#2200)
1 parent c27d765 commit fd2a800

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)