angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

perf(@angular-devkit/build-angular): initialize Angular shims for first rebuild in esbuild builder

Open clydin opened this issue 3 years ago • 0 comments

When in watch mode with the experimental esbuild-based browser builder, the Angular compiler's internal type checking shims are now initialized earlier in the initial build. This allows the TypeScript builder program to become aware of the existence of these files during the initial build instead of during the first rebuild. As a result, the TypeScript builder program will no longer assume all the shim files and associated project files have been affected and required to be emitted and type checked again. This change causes the first rebuild to be similar in performance to subsequent rebuilds.

clydin avatar Oct 26 '22 15:10 clydin