Using the ahead-of-time compiler for all development phases
In previous generations of Angular, the ahead-of-time compiler was significantly slower than the just-in-time Angular compiler. Because of this and other factors, just-in-time was the default compiler in all or several phases of development depending on the Angular version. This in turn led to issues because errors were only discovered when doing a production build or—even worse—in the production environment at runtime.
Angular Ivy uses its ahead-of-time compiler by default in all development phases, including while running the development server, when running tests, for server-side rendering, and in the browser, instead of bundling and running the just-in-time compiler at runtime.
This section discusses how the ahead-of-time Angular compiler affects these phases of our development workflow.
Ahead-of-time compilation for builds
Besides improved compilation speed in Angular Ivy, another key to using...