Skip to content

Commit ec8a92d

Browse files
filipesilvadond2clouds
authored andcommitted
fix(@angular/cli): use a more restrictive workaround for mapbox-gl workaround
See angular#7931 (comment)
1 parent 1c96fa9 commit ec8a92d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@angular/cli/models/webpack-configs/production.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ export function getProdConfig(wco: WebpackConfigOptions) {
118118
}
119119

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

128128
if (buildOptions.buildOptimizer) {

0 commit comments

Comments
 (0)