After upgrading my project to Angular 8, I noticed a significant increase in compile time without encountering any errors during the upgrade process. Is there a way to restore the previous compile time efficiency?
**Update: A bug has been identified as the root cause of this issue. For more information on this bug, refer to https://github.com/angular/angular-cli/issues/13734
Last Compile Time Before Angular 8 (with Angular 7.2)
Time: 1382.536ms -> main.cf29a89468d732f3f363.js (main) 12.4 MB
First Compile Time After Upgrading to Angular 8
Time: 6379.317ms -> main.da4147c72278bc767ee4.js (main) 12.3 MB
Second Compile Time After Upgrading to Angular 8 and Restarting 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"
]
}
Angular CLI: 8.0.0
Node: 12.3.1
OS: win32 x64
Angular: 8.0.0