Angular "partial" vs "full" compilation mode?

5.4k views Asked by At

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

1

There are 1 answers

0
Akira Taguchi On

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