Skip to content

Commit

Permalink
fix(@angular/cli): workaround ES2015 minifier inlining defect
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and hansl committed Mar 7, 2018
1 parent fefd6c9 commit 6a55af3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@angular/cli/models/webpack-configs/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ export function getProdConfig(wco: WebpackConfigOptions) {
// 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
typeofs : false,
// Workaround known uglify-es issue
// See https://github.com/mishoo/UglifyJS2/issues/2949#issuecomment-368070307
inline: wco.supportES2015 ? 1 : 3,
};

if (buildOptions.buildOptimizer) {
Expand Down

0 comments on commit 6a55af3

Please sign in to comment.