Skip to content

Super slow build time while updating to v8.0.0 #14666

@hugo-marello

Description

@hugo-marello

🐞 Bug report

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Previous versions were way faster, last compiled with 7.2.0

Description

Tryed to update my large angular application to version 8.0.0, but the build takes forever.

🔬 Minimal Reproduction

Create a v6 angular app and follow the instructions on https://update.angular.io to update it to v8.0.0 . Build the application with node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --prod --verbose --no-progress > log.txt

🌍 Your Environment




Angular CLI: 8.0.1
Node: 10.15.2
OS: linux x64
Angular: 8.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.1
@angular-devkit/build-angular     0.800.1
@angular-devkit/build-optimizer   0.800.1
@angular-devkit/build-webpack     0.800.1
@angular-devkit/core              8.0.1
@angular-devkit/schematics        8.0.1
@angular/cli                      8.0.1
@ngtools/webpack                  8.0.1
@schematics/angular               8.0.1
@schematics/update                0.800.1
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0

Anything else relevant?
My guess is the angular-devkit/build-angular is the culprit, it was known to have caused slowness in the past. I've run the benchmark inside the webpack script, I've posted the first half hour of execution.
log.zip

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