'Agular "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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Akira Taguchi