Taking more then 1hr while build --prod=true with --aot=true in angular 9.1.0 #17469
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
needs: more info
Reporter must clarify the issue
severity4: memory/performance
type: bug/fix
Milestone
🐞 bug report
Affected Package
When I build my project with below command it is taking more then 1.5 hr to complete its build process
node --max_old_space_size=12000 node_modules/@angular/cli/bin/ng build --prod=true --progress=true --verbose=true
Description
[webpack.Progress] 276437ms building
[webpack.Progress] 1655ms finish module graph
[webpack.Progress] 394ms dependencies optimization
[webpack.Progress] 227ms chunk graph
[webpack.Progress] 1238ms module optimization
[webpack.Progress] 73ms advanced chunk optimization
[webpack.Progress] 2002703ms chunk modules optimization
[webpack.Progress] 72ms module order optimization
[webpack.Progress] 102ms before module ids
[webpack.Progress] 59ms module id optimization
[webpack.Progress] 21ms chunk id optimization
[webpack.Progress] 54ms after chunk id optimization
[webpack.Progress] 4604ms hashing
[webpack.Progress] 18ms module assets processing
[webpack.Progress] 20496ms chunk assets processing
[webpack.Progress] 20ms additional chunk assets processing
[webpack.Progress] 67ms additional asset processing
[webpack.Progress] 1782654ms chunk asset optimization
[webpack.Progress] 1871ms emitting
🔬 Minimal Reproduction
run below command with some configuration like
node --max_old_space_size=12000 node_modules/@angular/cli/bin/ng build --prod=true --progress=true --verbose=true
configurations :-
tsconfig.json
angular.json
🌍 Your Environment
Angular CLI: 9.1.1
Node: 12.16.1
OS: linux x64
Angular: 9.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
@angular-devkit/architect 0.901.1
@angular-devkit/build-angular 0.901.1
@angular-devkit/build-optimizer 0.901.1
@angular-devkit/build-webpack 0.901.1
@angular-devkit/core 9.1.1
@angular-devkit/schematics 9.1.1
@angular/cdk 9.2.0
@angular/flex-layout 9.0.0-beta.29
@angular/material 9.2.0
@angular/material-moment-adapter 9.2.0
@ngtools/webpack 9.1.1
@schematics/angular 9.1.1
@schematics/update 0.901.1
rxjs 6.5.5
typescript 3.8.3
webpack 4.42.0
The text was updated successfully, but these errors were encountered: