Long compile time in angular 20

Discussão em 'Angular' iniciado por aii-yin, Novembro 27, 2025.

  1. aii-yin

    aii-yin Guest

    After upgrading my angular project from 19.2.15 to 20.3.1

    My project's compile time (ng build) when from 85.426 seconds to 453.679 seconds.
    The resulted bundle size difference is minimal (different by 0.04 MB), where angular 20 generated size is smaller.

    Both is compiled with the same node version (22.19).

    After lots of troubleshoot and tweaks, example: delete and regenerate \node_modules and package-lock.json
    I still could not understand what cause angular 20 to compile (slower?) longer

    Any pointer or guide and how to troubleshoot the cause is appreciated.

    Angular 19 compile result: [​IMG]

    Angular 20 compile result: [​IMG]

    Continue reading...

Compartilhe esta Página