mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
When using the esbuild-based browser application builder with CLI caching enabled, TypeScript's `incremental` option will also be enabled by default. A TypeScript build information file will be written after each build and an attempt to load and use the file will be made during compilation setup. Caching is enabled by default within the CLI and can be controlled via the `ng cache` command. This is the first use of persistent caching for the esbuild-based builder. If the TypeScript `incremental` option is manually set to `false`, the build system will not alter the value. This can be used to disable the behavior, if preferred, by setting the option to `false` in the application's configured `tsconfig` file. NOTE: The build information only contains information regarding the TypeScript compilation itself and does not contain information about the Angular AOT compilation. TypeScript does not have knowledge of the AOT compiler and it therefore cannot include that information in its build information file. Angular AOT analysis is still performed for each build.