Skip to content

Commit

Permalink
fix(@angular/cli): use a more restrictive workaround for mapbox-gl wo…
Browse files Browse the repository at this point in the history
…rkaround

See #7931 (comment)
  • Loading branch information
filipesilva authored and clydin committed Dec 4, 2017
1 parent 67ac665 commit 24d2520
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/@angular/cli/models/webpack-configs/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export function getProdConfig(wco: WebpackConfigOptions) {
}

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
// Disabled because of an issue with Mapbox GL when using the Webpack node global and UglifyJS:
// https://github.com/mapbox/mapbox-gl-js/issues/4359#issuecomment-303880888
// https://github.com/angular/angular-cli/issues/5804
// https://github.com/angular/angular-cli/pull/7931
typeofs : false
};

if (buildOptions.buildOptimizer) {
Expand Down

0 comments on commit 24d2520

Please sign in to comment.