Using the Angular Compatibility Compiler
In some Angular version 9 releases, we had to run the Angular Compatibility Compiler manually before building, testing, or serving our Angular Ivy application. In later releases, this changed so that the Angular CLI triggers the Angular Compatibility Compiler as needed.
It is still possible to run the Angular Compatibility Compiler manually. In fact, this allows for fine-tuning it to optimal compilation speed.
The Angular Compatibility Compiler needs to run at least once before any of the following:
- Starting a development server
- Executing automated tests
- Building our application
Every time we install a new version of an Angular library or an additional Angular library from a package registry, we must run the Angular Compatibility Compiler again.
Consider running the Angular Compatibility Compiler as part of your Git repository's postinstall
hook. When using this technique, we do not have to wait the next...