Skip to content

ng serve takes 40 seconds to recompile #22964

@ranmedina

Description

@ranmedina

Which @angular/* package(s) are the source of the bug?

compiler-cli, compiler

Is this a regression?

No

Description

Related to angular/angular#42799

I just upgraded Angular 11 to Angular 13, and it takes minimum of 40 seconds to recompile.
Our application is relatively big, and not the most efficient one. However, it worked pretty fine on Angular 11.

image

In my old project we used NG_BUILD_IVY_LEGACY=1 and it drastically improved loading times - it doesn't work now though.

Angular CLI: 13.3.2
Node: 16.13.0
Package Manager: npm 8.1.0
OS: darwin x64

Angular: 13.3.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.2
@angular-devkit/build-angular   13.3.2
@angular-devkit/core            13.3.2
@angular-devkit/schematics      13.3.2
@schematics/angular             13.3.2
rxjs                            7.5.5
typescript                      4.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions