Skip to content

Found mostly working esbuild Angular compiler - fix pending issues and use it for Angular CLI build? #23153

Closed
@vzakharov-rxnt

Description

@vzakharov-rxnt

🚀 Feature request

Command (mark with an x)

  • build
  • serve

Description

I found a mostly working esbuild compiler for Angular. I know Angular team is investigating this, so could be of some help.

Describe the solution you'd like

Please expedite build speed improvements, current Angular 13.x builds are too slow, even my most simple app with 5k of own LOC and 1.8MB JS bundle size takes 2min to build on a CI/CD agent. I checked other questions here, I would be fine to not have type checking, I can add a parallel type check with npm-run-all, it would still be faster.

For example, one enterprise application that I have here, with 15MB bundle size (combined main and lazy chunks), takes 1min to build with Angular 13 CLI on my Ryzen 9 laptop. It's a mix of Angular 13 and Angular 1.x code. Another enterprise application with the same bundle size takes 30 seconds to build with webpack/esbuild-loader and type checks running in parallel. It only has Angular 1.x code, no Angular 13.

Assuming the above data and linear correlation between output bundle size and build time (15MB / 1.8MB * 2min), I estimate 16min on a CI/CD agent for our larger app.

Describe alternatives you've considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions