'Angular app build time is taking too long after importing an library compiled in a "partial" compilation mode

I created an angular library with an angular 10 and migrated it to the angular 12 successfully. If I compile the library in a partial mode, the library within an angular 12 app is taking ~30 minutes. If I compile it in a "full" compilation mode, it builds in ~1 minute.

At the moment, it is not possible to publish a full ivy compiled library to npm.

How to improve a build time, any suggestions?



Sources

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

Source: Stack Overflow

Solution Source