Skip to content

Commit

Permalink
fix(@angular/cli): Disable comparisons feature in uglify compression …
Browse files Browse the repository at this point in the history
…in production
  • Loading branch information
Wykks authored and filipesilva committed Nov 29, 2017
1 parent 4b0c7a3 commit 8821520
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/@angular/cli/models/webpack-configs/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ export function getProdConfig(wco: WebpackConfigOptions) {
}));
}

const uglifyCompressOptions: any = {};
const uglifyCompressOptions: any = {
// Disabled because of an issue with Uglify breaking seemingly valid code:
// https://github.com/angular/angular-cli/issues/5804
// Further investigation:
// https://github.com/mishoo/UglifyJS2/issues/2011
comparisons: false
};

if (buildOptions.buildOptimizer) {
// This plugin must be before webpack.optimize.UglifyJsPlugin.
Expand Down

0 comments on commit 8821520

Please sign in to comment.