Ivy Compiler is the latest compiler for Angular application released by Angular Team. Currently, Angular is using View Engine compiler to compile Angular application.
In general, Angular compiler has two options to compile an application.
Ivy Compiler is the optimised and advanced compiler for Angular. As of Angular 8, it is not yet complete even though it is useable at this stage. Angular Team is recommending the developer to use it in Angular 8.
The main advantages of Ivy Compiler are as follows −
Ivy Compiler can be used in Angular 8 application by changing the project setting as specified below −
Open angular.json and set the aot option (projects -> -> architect -> build -> configurations -> production) of the project to true.
{ "projects": { "my-existing-project": { "architect": { "build": { "options": { ... "aot": true, } } } } } }
Open tsconfig.app.json and set enableIvy to true under angularCompilerOptions.
{ ... "angularCompilerOptions": { "enableIvy": true }
Compile and run the application and get benefited by Ivy Compiler.