Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular "partial" vs "full" compilation mode?

Why the library compiled in the "partial" compilation mode builds so slowly inside of the consumer application, compared to the "full" compilation mode?

like image 473
nikola.maksimovic Avatar asked Jul 31 '26 22:07

nikola.maksimovic


1 Answers

As the documentation states:

full Generates fully AOT-compiled code according to the version of Angular that is currently being used.

partial Generates code in a stable, but intermediate form suitable for a published library.

Effectively this means that the partial compiles more slowly compared to full because the partial compilation has to build more compatible target code than with full. See this post for further details considering Ivy. Hope the next image helps you too with understanding: intermediate compilation

like image 92
Akira Taguchi Avatar answered Aug 02 '26 14:08

Akira Taguchi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!