We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0c7a3 commit 8821520Copy full SHA for 8821520
packages/@angular/cli/models/webpack-configs/production.ts
@@ -117,7 +117,13 @@ export function getProdConfig(wco: WebpackConfigOptions) {
117
}));
118
}
119
120
- const uglifyCompressOptions: any = {};
+ const uglifyCompressOptions: any = {
121
+ // Disabled because of an issue with Uglify breaking seemingly valid code:
122
+ // https://github.com/angular/angular-cli/issues/5804
123
+ // Further investigation:
124
+ // https://github.com/mishoo/UglifyJS2/issues/2011
125
+ comparisons: false
126
+ };
127
128
if (buildOptions.buildOptimizer) {
129
// This plugin must be before webpack.optimize.UglifyJsPlugin.
0 commit comments