mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
In this commit, we've optimized the build performance for applications containing a large number of components when using the esbuild-based builder. This optimization entails replacing the spread operator with `Object.assign` when appending to the result metadata in the Angular compiler plugin to avoid creating multiple copies of the object. See: https://bugs.chromium.org/p/v8/issues/detail?id=11536 **Previous Performance**: - Initial compilation: 37 seconds - First incremental build: 20 seconds - Second incremental build: 16 seconds **Updated Performance**: - Initial compilation: 24 seconds - First incremental build: 6 seconds - Second incremental build: 2 seconds Closes #27280