We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d0a09 commit 8a63396Copy full SHA for 8a63396
packages/@angular/cli/models/webpack-configs/production.ts
@@ -108,7 +108,13 @@ export function getProdConfig(wco: WebpackConfigOptions) {
108
}));
109
}
110
111
- const uglifyCompressOptions: any = {};
+ const uglifyCompressOptions: any = {
112
+ // Disabled because of an issue with Uglify breaking seemingly valid code:
113
+ // https://github.com/angular/angular-cli/issues/5804
114
+ // Further investigation:
115
+ // https://github.com/mishoo/UglifyJS2/issues/2011
116
+ comparisons: false
117
+ };
118
119
if (buildOptions.buildOptimizer) {
120
// This plugin must be before webpack.optimize.UglifyJsPlugin.
0 commit comments