After upgrading to Angular 8 , compile time increased 3 times.
See original GitHub issueI upgraded my project to Angular 8 version. While upgrading process, I haven’t met any error. But the compile time increased 3 times without any error.
Last Compile Before Angular 8 (with Angular 7.2)
Time: 1382.536ms -> main.cf29a89468d732f3f363.js (main) 12.4 MB
First Compile After Upgrading to Angular 8
Time: 6379.317ms -> main.da4147c72278bc767ee4.js (main) 12.3 MB
Second Compile After Upgrading to Angular 8 and After restart PC
Time: 3147.254ms -> main.da4147c72278bc767ee4.js (main) 12.3 MB
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "./",
"moduleResolution": "node",
"outDir": "../__dist_cli",
"sourceMap": true,
"target": "es5 ",
"module": "es2015",
"lib": [
"es2016",
"dom"
],
"typeRoots": [
"node_modules/@types",
"typings/custom"
]
}
package.josn
....
"private": true,
"dependencies": {
"@angular/animations": "^8.0.0",
"@angular/cdk": "^8.0.0",
"@angular/common": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/flex-layout": "^8.0.0-beta.26",
"@angular/forms": "^8.0.0",
"@angular/material": "^8.0.0",
"@angular/platform-browser": "^8.0.0",
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"core-js": "^2.5.4",
"font-awesome": "^4.7.0",
"intl": "^1.2.5",
"rxjs": "^6.5.2",
"tar": "^4.4.8",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.800.0",
"@angular-devkit/build-optimizer": "^0.800.0",
"@angular/cli": "^8.0.0",
"@angular/compiler": "^8.0.0",
"@angular/compiler-cli": "^8.0.0",
"@types/angular": "^1.6.54",
"@types/angular-route": "^1.3.5",
"@types/quill": "^2.0.2",
"hammerjs": "^2.0.8",
"quill": "^1.3.6",
"typescript": "^3.4.5"
}
}
Angular CLI: 8.0.0
Node: 12.3.1
OS: win32 x64
Angular: 8.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.0
@angular-devkit/build-angular 0.800.0
@angular-devkit/build-optimizer 0.800.0
@angular-devkit/build-webpack 0.800.0
@angular-devkit/core 8.0.0
@angular-devkit/schematics 8.0.0
@angular/flex-layout 8.0.0-beta.26
@ngtools/webpack 8.0.0
@schematics/angular 8.0.0
@schematics/update 0.800.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.30.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:26 (1 by maintainers)
Top Results From Across the Web
After upgrading to Angular 9, compile time has increased ...
When I upgraded from Angular 8 to 9, the compile time increased by more than 3 times and also, I used the Scss...
Read more >How to speed up your Angular builds - Bitovi
First, increase Node's memory limit. This consumes more RAM, but it helps. Second, keep ahead-of-time (AOT) compilation turned on. Builds will ...
Read more >Ahead-of-time (AOT) compilation - Angular
The Angular ahead-of-time (AOT) compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the ...
Read more >How to resolve compile errors during upgrade of Angular ...
After I got to 7, I upgraded to Angular 8 then 9 then 10. ... After upgrading my project to Angular 8 from...
Read more >How To Update Angular CLI To Latest Version
After updating Angular CLI globally you might get this warning if your local project's angular cli version less than the global angular cli ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Overall angular-cli is two times slower and consumes more memory than custom script with rollup or closure and even webpack. CI times are much worse.
It is actually faster than in Angular 7. The difference is that Angular 8 provides Differential Loading out-of-the-box. In my case, it was compiling two different versions, one for es5 and other one for es2015, doubling the compilation process.