fix(@ngtools/webpack): reduce overhead of Angular compiler rebuild requests by clydin · Pull Request #19986 · angular/angular-cli

@clydin added the target: patch

This PR is targeted for the next patch release

label

Feb 5, 2021

@clydin clydin marked this pull request as ready for review

February 5, 2021 19:03
…quests

This change adds additional checks to reduce the number of Webpack `rebuildModule` calls when the Angular compiler requests additional files to be rebuilt. Now if an emitted file's output does not change from its previous emit, a Webpack rebuild of the module is not performed. This can greatly reduce the amount of computation needed during a rebuild as any files that required re-analysis by the Angular compiler but whose final output did not change will not trigger potential expensive Webpack module graph analysis and additonal module rebuilds.

@clydin

alan-agius4