Skip to content

Commit ef52675

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
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)