FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

AOT builds with TypeScript 5.6 or later are slower in Angular 19 · Issue #59040 · angular/angular · GitHub

AOT builds with TypeScript 5.6 or later are slower in Angular 19 #59040

Description

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

18.0.1

Description

After upgrading my project from Angular 18 to Angular 19 using ng update, I've noticed a significant performance degradation with ng serve. Previously, rebuilds were much faster, but now they take up to 10 seconds or more.

Minimal Reproduction

https://github.com/Oussemasahbeni/saha-meter-frontend

I made the repo public until the issue got resolved, its a close source project for my company
Please check the clean-up branch

Exception or Error

Your Environment

Angular CLI: 19.0.2
Node: 22.11.0
Package Manager: npm 10.9.0
OS: win32 x64

Angular: 19.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, material-luxon-adapter, platform-browser
... platform-browser-dynamic, router, service-worker
... youtube-player

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.2
@angular-devkit/build-angular   19.0.2
@angular-devkit/core            19.0.2
@angular-devkit/schematics      19.0.2
@angular/build                  19.0.2
@angular/cli                    19.0.2
@schematics/angular             19.0.2
rxjs                            7.8.1
typescript                      5.6.3
zone.js                         0.15.0

Anything else relevant?

I managed to make it a little bit faster by disabling aot in development

"development": {
                            "optimization": false,
                            "extractLicenses": false,
                            "aot":false,
                            "sourceMap": true
                        }

but still a lot of people told that is not a solution but a workaround and it can hurt the project in the long term

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compilerarea: performanceIssues related to performanceregressionIndicates than the issue relates to something that worked in a previous versionstate: blocked on upstream

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL