Skip to content

Commit fa8216c

Browse files
cexbrayatvikerman
authored andcommitted
fix(@angular-devkit/build-angular): re-introduce pure_getters
PR #15607 removed the `_pure_getters` optimization as it no longer has effect on the framework size. But it does have an effect on third party library. For example a simple project using `@ng-bootstrap/ng-bootstrap` goes from `444K` uncompressed with CLI `9.0.0-next.5` to `488K` with CLI `9.0.0-next.6` which introduced the removal.
1 parent 0662a8d commit fa8216c

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

+1
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
354354
}
355355
: {
356356
ecma: terserEcma,
357+
pure_getters: buildOptions.buildOptimizer,
357358
// PURE comments work best with 3 passes.
358359
// See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926.
359360
passes: buildOptions.buildOptimizer ? 3 : 1,

0 commit comments

Comments
 (0)