angular: large angular application v9 build extreamly slow >20m

we are testing our application with v9 rc7 and build is taking more than 20 minutes. which is extremely slow compared to v8 build time. (ng serve is also slow compared to v8)

below is the output from ng build command from our CI server for v9 build.

Generating ES5 bundles for differential loading...
build	09-Jan-2020 08:33:45	ES5 bundle generation complete.
build	09-Jan-2020 08:33:45	
build	09-Jan-2020 08:33:45	chunk {0} runtime-es2015.js (runtime) 3.79 kB [entry] [rendered]
build	09-Jan-2020 08:33:45	chunk {0} runtime-es5.js (runtime) 3.79 kB [entry] [rendered]
build	09-Jan-2020 08:33:45	chunk {6} lazy-modules-chat-chatLazyModule-es2015.js (lazy-modules-chat-chatLazyModule) 9.11 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {6} lazy-modules-chat-chatLazyModule-es5.js (lazy-modules-chat-chatLazyModule) 11 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {5} lazy-modules-castlight-castlightLazyModule-es2015.js (lazy-modules-castlight-castlightLazyModule) 5.97 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {5} lazy-modules-castlight-castlightLazyModule-es5.js (lazy-modules-castlight-castlightLazyModule) 6.58 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {7} lazy-modules-claim-form-claimformLazyModule-es2015.js (lazy-modules-claim-form-claimformLazyModule) 7.73 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {7} lazy-modules-claim-form-claimformLazyModule-es5.js (lazy-modules-claim-form-claimformLazyModule) 9.84 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {11} lazy-modules-cobrowse-coBrowseLazyModule-es2015.js (lazy-modules-cobrowse-coBrowseLazyModule) 3.84 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {11} lazy-modules-cobrowse-coBrowseLazyModule-es5.js (lazy-modules-cobrowse-coBrowseLazyModule) 5.54 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {8} lazy-modules-claim-formRcp2-claimformRcp2LazyModule-es2015.js (lazy-modules-claim-formRcp2-claimformRcp2LazyModule) 8.08 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {8} lazy-modules-claim-formRcp2-claimformRcp2LazyModule-es5.js (lazy-modules-claim-formRcp2-claimformRcp2LazyModule) 10.2 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {15} lazy-modules-dental-dentalLazyModule-es2015.js (lazy-modules-dental-dentalLazyModule) 571 bytes  [rendered]
build	09-Jan-2020 08:33:45	chunk {15} lazy-modules-dental-dentalLazyModule-es5.js (lazy-modules-dental-dentalLazyModule) 1.03 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {16} lazy-modules-discount-discountLazyModule-es2015.js (lazy-modules-discount-discountLazyModule) 598 bytes  [rendered]
build	09-Jan-2020 08:33:45	chunk {16} lazy-modules-discount-discountLazyModule-es5.js (lazy-modules-discount-discountLazyModule) 1.06 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {18} lazy-modules-faq-faqLazyModule-es2015.js (lazy-modules-faq-faqLazyModule) 6.94 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {18} lazy-modules-faq-faqLazyModule-es5.js (lazy-modules-faq-faqLazyModule) 9.06 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {13} lazy-modules-dashboard-dashboardLazyModule-es2015.js (lazy-modules-dashboard-dashboardLazyModule) 18.2 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {13} lazy-modules-dashboard-dashboardLazyModule-es5.js (lazy-modules-dashboard-dashboardLazyModule) 21.7 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {19} lazy-modules-faqRcp2-faqRcp2LazyModule-es2015.js (lazy-modules-faqRcp2-faqRcp2LazyModule) 7.67 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {19} lazy-modules-faqRcp2-faqRcp2LazyModule-es5.js (lazy-modules-faqRcp2-faqRcp2LazyModule) 9.98 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {20} lazy-modules-forms-formLazyModule-es2015.js (lazy-modules-forms-formLazyModule) 3.34 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {20} lazy-modules-forms-formLazyModule-es5.js (lazy-modules-forms-formLazyModule) 4.89 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {21} lazy-modules-formsRcp2-formRcp2LazyModule-es2015.js (lazy-modules-formsRcp2-formRcp2LazyModule) 3.33 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {21} lazy-modules-formsRcp2-formRcp2LazyModule-es5.js (lazy-modules-formsRcp2-formRcp2LazyModule) 4.87 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {22} lazy-modules-health-wellness-healthWellnessLazyModule-es2015.js (lazy-modules-health-wellness-healthWellnessLazyModule) 8.2 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {22} lazy-modules-health-wellness-healthWellnessLazyModule-es5.js (lazy-modules-health-wellness-healthWellnessLazyModule) 10.1 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {28} lazy-modules-provider-finder-providerFinderLazyModule-es2015.js (lazy-modules-provider-finder-providerFinderLazyModule) 1.13 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {28} lazy-modules-provider-finder-providerFinderLazyModule-es5.js (lazy-modules-provider-finder-providerFinderLazyModule) 2.52 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {24} lazy-modules-insurance-insuranceLazyModule-es2015.js (lazy-modules-insurance-insuranceLazyModule) 13.2 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {24} lazy-modules-insurance-insuranceLazyModule-es5.js (lazy-modules-insurance-insuranceLazyModule) 17.5 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {30} lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-es2015.js (lazy-modules-secure-message-V2-secureMessageRcp2LazyModule) 13.7 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {30} lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-es5.js (lazy-modules-secure-message-V2-secureMessageRcp2LazyModule) 16.9 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {3} lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-es2015.js (lazy-modules-benefitsRcp2-benefitsRcp2LazyModule) 103 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {3} lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-es5.js (lazy-modules-benefitsRcp2-benefitsRcp2LazyModule) 119 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {33} lazy-modules-vision-visionLazyModule-es2015.js (lazy-modules-vision-visionLazyModule) 571 bytes  [rendered]
build	09-Jan-2020 08:33:45	chunk {33} lazy-modules-vision-visionLazyModule-es5.js (lazy-modules-vision-visionLazyModule) 1.03 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {31} lazy-modules-secure-message-secureMessageLazyModule-es2015.js (lazy-modules-secure-message-secureMessageLazyModule) 15.8 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {31} lazy-modules-secure-message-secureMessageLazyModule-es5.js (lazy-modules-secure-message-secureMessageLazyModule) 19.1 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {34} lazy-modules-vivr-vivrLazyModule-es2015.js (lazy-modules-vivr-vivrLazyModule) 637 bytes  [rendered]
build	09-Jan-2020 08:33:45	chunk {34} lazy-modules-vivr-vivrLazyModule-es5.js (lazy-modules-vivr-vivrLazyModule) 1.1 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {36} polyfills-es2015.js (polyfills) 9.07 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {4} lazy-modules-billpay-billpayLazyModule-es2015.js (lazy-modules-billpay-billpayLazyModule) 42.9 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {4} lazy-modules-billpay-billpayLazyModule-es5.js (lazy-modules-billpay-billpayLazyModule) 48.6 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {2} lazy-modules-benefits-benefitsLazyModule-es2015.js (lazy-modules-benefits-benefitsLazyModule) 136 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {2} lazy-modules-benefits-benefitsLazyModule-es5.js (lazy-modules-benefits-benefitsLazyModule) 159 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {10} lazy-modules-claimsRcp2-claimsRcp2LazyModule-es2015.js (lazy-modules-claimsRcp2-claimsRcp2LazyModule) 24.3 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {10} lazy-modules-claimsRcp2-claimsRcp2LazyModule-es5.js (lazy-modules-claimsRcp2-claimsRcp2LazyModule) 27.4 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {1} lazy-modules-aae-aaeLazyModule-es2015.js (lazy-modules-aae-aaeLazyModule) 345 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {1} lazy-modules-aae-aaeLazyModule-es5.js (lazy-modules-aae-aaeLazyModule) 357 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {14} lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-es2015.js (lazy-modules-dashboardRcp2-dashboardRcp2LazyModule) 21.8 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {14} lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-es5.js (lazy-modules-dashboardRcp2-dashboardRcp2LazyModule) 25.4 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {12} lazy-modules-contactus-contactusLazyModule-es2015.js (lazy-modules-contactus-contactusLazyModule) 121 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {12} lazy-modules-contactus-contactusLazyModule-es5.js (lazy-modules-contactus-contactusLazyModule) 128 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {9} lazy-modules-claims-claimsLazyModule-es2015.js (lazy-modules-claims-claimsLazyModule) 214 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {9} lazy-modules-claims-claimsLazyModule-es5.js (lazy-modules-claims-claimsLazyModule) 222 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {23} lazy-modules-idcards-idcardsLazyModule-es2015.js (lazy-modules-idcards-idcardsLazyModule) 99.8 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {23} lazy-modules-idcards-idcardsLazyModule-es5.js (lazy-modules-idcards-idcardsLazyModule) 105 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {17} lazy-modules-engage-engageLazyModule-es2015.js (lazy-modules-engage-engageLazyModule) 379 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {17} lazy-modules-engage-engageLazyModule-es5.js (lazy-modules-engage-engageLazyModule) 399 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {25} lazy-modules-pcp-pcpLazyModule-es2015.js (lazy-modules-pcp-pcpLazyModule) 362 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {25} lazy-modules-pcp-pcpLazyModule-es5.js (lazy-modules-pcp-pcpLazyModule) 377 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {27} lazy-modules-profile-profileLazyModule-es2015.js (lazy-modules-profile-profileLazyModule) 79.9 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {27} lazy-modules-profile-profileLazyModule-es5.js (lazy-modules-profile-profileLazyModule) 83.1 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {26} lazy-modules-pharmacy-pharmacyLazyModule-es2015.js (lazy-modules-pharmacy-pharmacyLazyModule) 553 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {26} lazy-modules-pharmacy-pharmacyLazyModule-es5.js (lazy-modules-pharmacy-pharmacyLazyModule) 576 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {29} lazy-modules-search-provider-searchProviderLazyModule-es2015.js (lazy-modules-search-provider-searchProviderLazyModule) 328 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {29} lazy-modules-search-provider-searchProviderLazyModule-es5.js (lazy-modules-search-provider-searchProviderLazyModule) 338 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {37} polyfills-es5.js (polyfills-es5) 97 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {32} lazy-modules-spending-accounts-spendingAccountsLazyModule-es2015.js (lazy-modules-spending-accounts-spendingAccountsLazyModule) 557 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {32} lazy-modules-spending-accounts-spendingAccountsLazyModule-es5.js (lazy-modules-spending-accounts-spendingAccountsLazyModule) 570 kB  [rendered]
build	09-Jan-2020 08:33:45	chunk {35} main-es2015.js (main) 456 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {35} main-es5.js (main) 511 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {38} vendor-es2015.js (vendor) 735 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {38} vendor-es5.js (vendor) 854 kB [initial] [rendered]
build	09-Jan-2020 08:33:45	chunk {scripts} scripts.js (scripts) 198 kB [entry] [rendered]
build	09-Jan-2020 08:33:45	Date: 2020-01-09T13:33:45.258Z - Hash: 919f7d3c9812e490c105 - Time: 1454020ms

same application v8 build output is below

build	09-Jan-2020 10:22:11	Generating ES5 bundles for differential loading...
build	09-Jan-2020 10:22:11	ES5 bundle generation complete.
build	09-Jan-2020 10:22:11	
build	09-Jan-2020 10:22:11	chunk {0} runtime-es2015.js (runtime) 4.27 kB [entry] [rendered]
build	09-Jan-2020 10:22:11	chunk {0} runtime-es5.js (runtime) 4.27 kB [entry] [rendered]
build	09-Jan-2020 10:22:11	chunk {5} lazy-modules-castlight-castlightLazyModule-ngfactory-es2015.js (lazy-modules-castlight-castlightLazyModule-ngfactory) 10.6 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {5} lazy-modules-castlight-castlightLazyModule-ngfactory-es5.js (lazy-modules-castlight-castlightLazyModule-ngfactory) 10.8 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {11} lazy-modules-cobrowse-coBrowseLazyModule-ngfactory-es2015.js (lazy-modules-cobrowse-coBrowseLazyModule-ngfactory) 17.7 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {11} lazy-modules-cobrowse-coBrowseLazyModule-ngfactory-es5.js (lazy-modules-cobrowse-coBrowseLazyModule-ngfactory) 18.6 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {16} lazy-modules-dental-dentalLazyModule-ngfactory-es2015.js (lazy-modules-dental-dentalLazyModule-ngfactory) 3.33 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {16} lazy-modules-dental-dentalLazyModule-ngfactory-es5.js (lazy-modules-dental-dentalLazyModule-ngfactory) 3.37 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {35} lazy-modules-vision-visionLazyModule-ngfactory-es2015.js (lazy-modules-vision-visionLazyModule-ngfactory) 3.33 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {35} lazy-modules-vision-visionLazyModule-ngfactory-es5.js (lazy-modules-vision-visionLazyModule-ngfactory) 3.37 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {29} lazy-modules-provider-finder-providerFinderLazyModule-ngfactory-es2015.js (lazy-modules-provider-finder-providerFinderLazyModule-ngfactory) 14.1 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {29} lazy-modules-provider-finder-providerFinderLazyModule-ngfactory-es5.js (lazy-modules-provider-finder-providerFinderLazyModule-ngfactory) 15 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {38} polyfills-es2015.js (polyfills) 9.07 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {36} lazy-modules-vivr-vivrLazyModule-ngfactory-es2015.js (lazy-modules-vivr-vivrLazyModule-ngfactory) 9.16 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {36} lazy-modules-vivr-vivrLazyModule-ngfactory-es5.js (lazy-modules-vivr-vivrLazyModule-ngfactory) 9.59 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {3} lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-ngfactory-es2015.js (lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-ngfactory) 399 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {3} lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-ngfactory-es5.js (lazy-modules-benefitsRcp2-benefitsRcp2LazyModule-ngfactory) 418 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {1} lazy-modules-aae-aaeLazyModule-ngfactory-es2015.js (lazy-modules-aae-aaeLazyModule-ngfactory) 671 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {1} lazy-modules-aae-aaeLazyModule-ngfactory-es5.js (lazy-modules-aae-aaeLazyModule-ngfactory) 685 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {2} lazy-modules-benefits-benefitsLazyModule-ngfactory-es2015.js (lazy-modules-benefits-benefitsLazyModule-ngfactory) 685 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {2} lazy-modules-benefits-benefitsLazyModule-ngfactory-es5.js (lazy-modules-benefits-benefitsLazyModule-ngfactory) 712 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {6} lazy-modules-chat-chatLazyModule-ngfactory-es2015.js (lazy-modules-chat-chatLazyModule-ngfactory) 78.7 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {6} lazy-modules-chat-chatLazyModule-ngfactory-es5.js (lazy-modules-chat-chatLazyModule-ngfactory) 80.2 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {7} lazy-modules-claim-form-claimformLazyModule-ngfactory-es2015.js (lazy-modules-claim-form-claimformLazyModule-ngfactory) 195 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {7} lazy-modules-claim-form-claimformLazyModule-ngfactory-es5.js (lazy-modules-claim-form-claimformLazyModule-ngfactory) 198 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {4} lazy-modules-billpay-billpayLazyModule-ngfactory-es2015.js (lazy-modules-billpay-billpayLazyModule-ngfactory) 530 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {4} lazy-modules-billpay-billpayLazyModule-ngfactory-es5.js (lazy-modules-billpay-billpayLazyModule-ngfactory) 542 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {8} lazy-modules-claim-formRcp2-claimformRcp2LazyModule-ngfactory-es2015.js (lazy-modules-claim-formRcp2-claimformRcp2LazyModule-ngfactory) 198 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {8} lazy-modules-claim-formRcp2-claimformRcp2LazyModule-ngfactory-es5.js (lazy-modules-claim-formRcp2-claimformRcp2LazyModule-ngfactory) 202 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {9} lazy-modules-claims-claimsLazyModule-ngfactory-es2015.js (lazy-modules-claims-claimsLazyModule-ngfactory) 290 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {9} lazy-modules-claims-claimsLazyModule-ngfactory-es5.js (lazy-modules-claims-claimsLazyModule-ngfactory) 297 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {10} lazy-modules-claimsRcp2-claimsRcp2LazyModule-ngfactory-es2015.js (lazy-modules-claimsRcp2-claimsRcp2LazyModule-ngfactory) 313 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {10} lazy-modules-claimsRcp2-claimsRcp2LazyModule-ngfactory-es5.js (lazy-modules-claimsRcp2-claimsRcp2LazyModule-ngfactory) 319 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {12} lazy-modules-contactus-contactusLazyModule-ngfactory-es2015.js (lazy-modules-contactus-contactusLazyModule-ngfactory) 339 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {12} lazy-modules-contactus-contactusLazyModule-ngfactory-es5.js (lazy-modules-contactus-contactusLazyModule-ngfactory) 345 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {14} lazy-modules-dashboard-dashboardLazyModule-ngfactory-es2015.js (lazy-modules-dashboard-dashboardLazyModule-ngfactory) 108 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {14} lazy-modules-dashboard-dashboardLazyModule-ngfactory-es5.js (lazy-modules-dashboard-dashboardLazyModule-ngfactory) 112 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {17} lazy-modules-discount-discountLazyModule-ngfactory-es2015.js (lazy-modules-discount-discountLazyModule-ngfactory) 22.3 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {17} lazy-modules-discount-discountLazyModule-ngfactory-es5.js (lazy-modules-discount-discountLazyModule-ngfactory) 23.3 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {15} lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-ngfactory-es2015.js (lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-ngfactory) 116 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {15} lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-ngfactory-es5.js (lazy-modules-dashboardRcp2-dashboardRcp2LazyModule-ngfactory) 119 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {19} lazy-modules-faq-faqLazyModule-ngfactory-es2015.js (lazy-modules-faq-faqLazyModule-ngfactory) 21.2 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {19} lazy-modules-faq-faqLazyModule-ngfactory-es5.js (lazy-modules-faq-faqLazyModule-ngfactory) 23.5 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {20} lazy-modules-faqRcp2-faqRcp2LazyModule-ngfactory-es2015.js (lazy-modules-faqRcp2-faqRcp2LazyModule-ngfactory) 31.8 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {20} lazy-modules-faqRcp2-faqRcp2LazyModule-ngfactory-es5.js (lazy-modules-faqRcp2-faqRcp2LazyModule-ngfactory) 34.7 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {21} lazy-modules-forms-formLazyModule-ngfactory-es2015.js (lazy-modules-forms-formLazyModule-ngfactory) 29 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {21} lazy-modules-forms-formLazyModule-ngfactory-es5.js (lazy-modules-forms-formLazyModule-ngfactory) 29.9 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {22} lazy-modules-formsRcp2-formRcp2LazyModule-ngfactory-es2015.js (lazy-modules-formsRcp2-formRcp2LazyModule-ngfactory) 27.9 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {22} lazy-modules-formsRcp2-formRcp2LazyModule-ngfactory-es5.js (lazy-modules-formsRcp2-formRcp2LazyModule-ngfactory) 28.9 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {13} lazy-modules-contactusRcp2-contactusRcp2LazyModule-ngfactory-es2015.js (lazy-modules-contactusRcp2-contactusRcp2LazyModule-ngfactory) 337 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {13} lazy-modules-contactusRcp2-contactusRcp2LazyModule-ngfactory-es5.js (lazy-modules-contactusRcp2-contactusRcp2LazyModule-ngfactory) 344 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {23} lazy-modules-health-wellness-healthWellnessLazyModule-ngfactory-es2015.js (lazy-modules-health-wellness-healthWellnessLazyModule-ngfactory) 204 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {23} lazy-modules-health-wellness-healthWellnessLazyModule-ngfactory-es5.js (lazy-modules-health-wellness-healthWellnessLazyModule-ngfactory) 207 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {24} lazy-modules-idcards-idcardsLazyModule-ngfactory-es2015.js (lazy-modules-idcards-idcardsLazyModule-ngfactory) 163 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {24} lazy-modules-idcards-idcardsLazyModule-ngfactory-es5.js (lazy-modules-idcards-idcardsLazyModule-ngfactory) 166 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {25} lazy-modules-insurance-insuranceLazyModule-ngfactory-es2015.js (lazy-modules-insurance-insuranceLazyModule-ngfactory) 184 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {25} lazy-modules-insurance-insuranceLazyModule-ngfactory-es5.js (lazy-modules-insurance-insuranceLazyModule-ngfactory) 188 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {26} lazy-modules-pcp-pcpLazyModule-ngfactory-es2015.js (lazy-modules-pcp-pcpLazyModule-ngfactory) 580 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {26} lazy-modules-pcp-pcpLazyModule-ngfactory-es5.js (lazy-modules-pcp-pcpLazyModule-ngfactory) 595 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {18} lazy-modules-engage-engageLazyModule-ngfactory-es2015.js (lazy-modules-engage-engageLazyModule-ngfactory) 1.03 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {18} lazy-modules-engage-engageLazyModule-ngfactory-es5.js (lazy-modules-engage-engageLazyModule-ngfactory) 1.06 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {30} lazy-modules-search-provider-searchProviderLazyModule-ngfactory-es2015.js (lazy-modules-search-provider-searchProviderLazyModule-ngfactory) 515 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {30} lazy-modules-search-provider-searchProviderLazyModule-ngfactory-es5.js (lazy-modules-search-provider-searchProviderLazyModule-ngfactory) 524 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {28} lazy-modules-profile-profileLazyModule-ngfactory-es2015.js (lazy-modules-profile-profileLazyModule-ngfactory) 756 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {28} lazy-modules-profile-profileLazyModule-ngfactory-es5.js (lazy-modules-profile-profileLazyModule-ngfactory) 766 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {31} lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-ngfactory-es2015.js (lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-ngfactory) 168 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {31} lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-ngfactory-es5.js (lazy-modules-secure-message-V2-secureMessageRcp2LazyModule-ngfactory) 172 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {32} lazy-modules-secure-message-secureMessageLazyModule-ngfactory-es2015.js (lazy-modules-secure-message-secureMessageLazyModule-ngfactory) 161 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {32} lazy-modules-secure-message-secureMessageLazyModule-ngfactory-es5.js (lazy-modules-secure-message-secureMessageLazyModule-ngfactory) 165 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {33} lazy-modules-spending-accounts-spendingAccountsLazyModule-ngfactory-es2015.js (lazy-modules-spending-accounts-spendingAccountsLazyModule-ngfactory) 761 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {33} lazy-modules-spending-accounts-spendingAccountsLazyModule-ngfactory-es5.js (lazy-modules-spending-accounts-spendingAccountsLazyModule-ngfactory) 774 kB  [rendered]
build	09-Jan-2020 10:22:11	chunk {34} lazy-modules-spending-accountsRcp2-spendingAccountsRcp2LazyModule-ngfactory-es2015.js (lazy-modules-spending-accountsRcp2-spendingAccountsRcp2LazyModule-ngfactory) 1.1 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {34} lazy-modules-spending-accountsRcp2-spendingAccountsRcp2LazyModule-ngfactory-es5.js (lazy-modules-spending-accountsRcp2-spendingAccountsRcp2LazyModule-ngfactory) 1.11 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {39} polyfills-es5.js (polyfills-es5) 84.6 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {37} main-es2015.js (main) 580 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {37} main-es5.js (main) 623 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {27} lazy-modules-pharmacy-pharmacyLazyModule-ngfactory-es2015.js (lazy-modules-pharmacy-pharmacyLazyModule-ngfactory) 2.72 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {27} lazy-modules-pharmacy-pharmacyLazyModule-ngfactory-es5.js (lazy-modules-pharmacy-pharmacyLazyModule-ngfactory) 2.76 MB  [rendered]
build	09-Jan-2020 10:22:11	chunk {40} vendor-es2015.js (vendor) 614 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {40} vendor-es5.js (vendor) 706 kB [initial] [rendered]
build	09-Jan-2020 10:22:11	chunk {scripts} scripts.js (scripts) 192 kB [entry] [rendered]
build	09-Jan-2020 10:22:11	Date: 2020-01-09T15:22:10.969Z - Hash: 43e39ccb232cc818c2fa - Time: 481486ms

appreciate if we can get some help to investigate this. our codebase is private but i can give read permission for troubleshooting purpose.

below is the ng serve output from developer box (macos). its taking close to 18mins

0% compiling
Compiling @angular/router : es2015 as esm2015

Compiling @angular/forms : es2015 as esm2015

Compiling @angular/animations : es2015 as esm2015

Compiling @angular/animations/browser : es2015 as esm2015

Compiling @angular/platform-browser/animations : es2015 as esm2015

Compiling @angular/common/http : es2015 as esm2015

Compiling @anthem/uxd/util : es2015 as esm2015

Compiling @anthem/uxd/accordion : es2015 as esm2015

Compiling @angular/cdk/portal : es2015 as esm2015

Compiling @anthem/uxd/alert : es2015 as esm2015

Compiling @anthem/uxd/callout : es2015 as esm2015

Compiling @anthem/uxd/carousel : es2015 as esm2015

Compiling @anthem/uxd/checkbox : es2015 as esm2015

Compiling @anthem/uxd/deprecated : es2015 as esm2015

Compiling @anthem/uxd/dropdowns : es2015 as esm2015

Compiling @anthem/uxd/jump-to : es2015 as esm2015

Compiling @anthem/uxd/navigation : es2015 as esm2015

Compiling @anthem/uxd/radio : es2015 as esm2015

Compiling @angular/cdk/keycodes : es2015 as esm2015

Compiling @angular/cdk/platform : es2015 as esm2015

Compiling @angular/cdk/observers : es2015 as esm2015

Compiling @angular/cdk/a11y : es2015 as esm2015

Compiling @anthem/uxd/tabs : es2015 as esm2015

Compiling @anthem/uxd/toggle-switch : es2015 as esm2015

Compiling @anthem/uxd/button : es2015 as esm2015

Compiling @anthem/uxd/chart : es2015 as esm2015

Compiling @anthem/uxd/footer : es2015 as esm2015

Compiling @anthem/uxd/form-group : es2015 as esm2015

Compiling @anthem/uxd/indicators : es2015 as esm2015

Compiling @anthem/uxd/input : es2015 as esm2015

Compiling @anthem/uxd/overlay : es2015 as esm2015

Compiling @anthem/uxd/modal : es2015 as esm2015

Compiling @anthem/uxd/paginator : es2015 as esm2015

Compiling @anthem/uxd/tooltip : es2015 as esm2015

chunk {lazy-modules-aae-aaeLazyModule} lazy-modules-aae-aaeLazyModule.js, lazy-modules-aae-aaeLazyModule.js.map (lazy-modules-aae-aaeLazyModule) 1.31 MB  [rendered]
chunk {lazy-modules-benefits-benefitsLazyModule} lazy-modules-benefits-benefitsLazyModule.js, lazy-modules-benefits-benefitsLazyModule.js.map (lazy-modules-benefits-benefitsLazyModule) 1.86 MB  [rendered]
chunk {lazy-modules-benefitsRcp2-benefitsRcp2LazyModule} lazy-modules-benefitsRcp2-benefitsRcp2LazyModule.js, lazy-modules-benefitsRcp2-benefitsRcp2LazyModule.js.map (lazy-modules-benefitsRcp2-benefitsRcp2LazyModule) 942 kB  [rendered]
chunk {lazy-modules-billpay-billpayLazyModule} lazy-modules-billpay-billpayLazyModule.js, lazy-modules-billpay-billpayLazyModule.js.map (lazy-modules-billpay-billpayLazyModule) 1.05 MB  [rendered]
chunk {lazy-modules-castlight-castlightLazyModule} lazy-modules-castlight-castlightLazyModule.js, lazy-modules-castlight-castlightLazyModule.js.map (lazy-modules-castlight-castlightLazyModule) 27.7 kB  [rendered]
chunk {lazy-modules-chat-chatLazyModule} lazy-modules-chat-chatLazyModule.js, lazy-modules-chat-chatLazyModule.js.map (lazy-modules-chat-chatLazyModule) 164 kB  [rendered]
chunk {lazy-modules-claim-form-claimformLazyModule} lazy-modules-claim-form-claimformLazyModule.js, lazy-modules-claim-form-claimformLazyModule.js.map (lazy-modules-claim-form-claimformLazyModule) 361 kB  [rendered]
chunk {lazy-modules-claim-formRcp2-claimformRcp2LazyModule} lazy-modules-claim-formRcp2-claimformRcp2LazyModule.js, lazy-modules-claim-formRcp2-claimformRcp2LazyModule.js.map (lazy-modules-claim-formRcp2-claimformRcp2LazyModule) 384 kB  [rendered]
chunk {lazy-modules-claims-claimsLazyModule} lazy-modules-claims-claimsLazyModule.js, lazy-modules-claims-claimsLazyModule.js.map (lazy-modules-claims-claimsLazyModule) 664 kB  [rendered]
chunk {lazy-modules-claimsRcp2-claimsRcp2LazyModule} lazy-modules-claimsRcp2-claimsRcp2LazyModule.js, lazy-modules-claimsRcp2-claimsRcp2LazyModule.js.map (lazy-modules-claimsRcp2-claimsRcp2LazyModule) 653 kB  [rendered]
chunk {lazy-modules-cobrowse-coBrowseLazyModule} lazy-modules-cobrowse-coBrowseLazyModule.js, lazy-modules-cobrowse-coBrowseLazyModule.js.map (lazy-modules-cobrowse-coBrowseLazyModule) 52.8 kB  [rendered]
chunk {lazy-modules-contactus-contactusLazyModule} lazy-modules-contactus-contactusLazyModule.js, lazy-modules-contactus-contactusLazyModule.js.map (lazy-modules-contactus-contactusLazyModule) 749 kB  [rendered]
chunk {lazy-modules-dashboard-dashboardLazyModule} lazy-modules-dashboard-dashboardLazyModule.js, lazy-modules-dashboard-dashboardLazyModule.js.map (lazy-modules-dashboard-dashboardLazyModule) 303 kB  [rendered]
chunk {lazy-modules-dashboardRcp2-dashboardRcp2LazyModule} lazy-modules-dashboardRcp2-dashboardRcp2LazyModule.js, lazy-modules-dashboardRcp2-dashboardRcp2LazyModule.js.map (lazy-modules-dashboardRcp2-dashboardRcp2LazyModule) 331 kB  [rendered]
chunk {lazy-modules-dental-dentalLazyModule} lazy-modules-dental-dentalLazyModule.js, lazy-modules-dental-dentalLazyModule.js.map (lazy-modules-dental-dentalLazyModule) 5.5 kB  [rendered]
chunk {lazy-modules-discount-discountLazyModule} lazy-modules-discount-discountLazyModule.js, lazy-modules-discount-discountLazyModule.js.map (lazy-modules-discount-discountLazyModule) 38.2 kB  [rendered]
chunk {lazy-modules-engage-engageLazyModule} lazy-modules-engage-engageLazyModule.js, lazy-modules-engage-engageLazyModule.js.map (lazy-modules-engage-engageLazyModule) 2.51 MB  [rendered]
chunk {lazy-modules-faq-faqLazyModule} lazy-modules-faq-faqLazyModule.js, lazy-modules-faq-faqLazyModule.js.map (lazy-modules-faq-faqLazyModule) 30.6 kB  [rendered]
chunk {lazy-modules-faqRcp2-faqRcp2LazyModule} lazy-modules-faqRcp2-faqRcp2LazyModule.js, lazy-modules-faqRcp2-faqRcp2LazyModule.js.map (lazy-modules-faqRcp2-faqRcp2LazyModule) 67.4 kB  [rendered]
chunk {lazy-modules-forms-formLazyModule} lazy-modules-forms-formLazyModule.js, lazy-modules-forms-formLazyModule.js.map (lazy-modules-forms-formLazyModule) 54.2 kB  [rendered]
chunk {lazy-modules-formsRcp2-formRcp2LazyModule} lazy-modules-formsRcp2-formRcp2LazyModule.js, lazy-modules-formsRcp2-formRcp2LazyModule.js.map (lazy-modules-formsRcp2-formRcp2LazyModule) 52.6 kB  [rendered]
chunk {lazy-modules-health-wellness-healthWellnessLazyModule} lazy-modules-health-wellness-healthWellnessLazyModule.js, lazy-modules-health-wellness-healthWellnessLazyModule.js.map (lazy-modules-health-wellness-healthWellnessLazyModule) 471 kB  [rendered]
chunk {lazy-modules-idcards-idcardsLazyModule} lazy-modules-idcards-idcardsLazyModule.js, lazy-modules-idcards-idcardsLazyModule.js.map (lazy-modules-idcards-idcardsLazyModule) 333 kB  [rendered]
chunk {lazy-modules-insurance-insuranceLazyModule} lazy-modules-insurance-insuranceLazyModule.js, lazy-modules-insurance-insuranceLazyModule.js.map (lazy-modules-insurance-insuranceLazyModule) 270 kB  [rendered]
chunk {lazy-modules-pcp-pcpLazyModule} lazy-modules-pcp-pcpLazyModule.js, lazy-modules-pcp-pcpLazyModule.js.map (lazy-modules-pcp-pcpLazyModule) 1.13 MB  [rendered]
chunk {lazy-modules-pharmacy-pharmacyLazyModule} lazy-modules-pharmacy-pharmacyLazyModule.js, lazy-modules-pharmacy-pharmacyLazyModule.js.map (lazy-modules-pharmacy-pharmacyLazyModule) 5.8 MB  [rendered]
chunk {lazy-modules-profile-profileLazyModule} lazy-modules-profile-profileLazyModule.js, lazy-modules-profile-profileLazyModule.js.map (lazy-modules-profile-profileLazyModule) 1.47 MB  [rendered]
chunk {lazy-modules-provider-finder-providerFinderLazyModule} lazy-modules-provider-finder-providerFinderLazyModule.js, lazy-modules-provider-finder-providerFinderLazyModule.js.map (lazy-modules-provider-finder-providerFinderLazyModule) 35.5 kB  [rendered]
chunk {lazy-modules-search-provider-searchProviderLazyModule} lazy-modules-search-provider-searchProviderLazyModule.js, lazy-modules-search-provider-searchProviderLazyModule.js.map (lazy-modules-search-provider-searchProviderLazyModule) 979 kB  [rendered]
chunk {lazy-modules-secure-message-V2-secureMessageRcp2LazyModule} lazy-modules-secure-message-V2-secureMessageRcp2LazyModule.js, lazy-modules-secure-message-V2-secureMessageRcp2LazyModule.js.map (lazy-modules-secure-message-V2-secureMessageRcp2LazyModule) 346 kB  [rendered]
chunk {lazy-modules-secure-message-secureMessageLazyModule} lazy-modules-secure-message-secureMessageLazyModule.js, lazy-modules-secure-message-secureMessageLazyModule.js.map (lazy-modules-secure-message-secureMessageLazyModule) 315 kB  [rendered]
chunk {lazy-modules-spending-accounts-spendingAccountsLazyModule} lazy-modules-spending-accounts-spendingAccountsLazyModule.js, lazy-modules-spending-accounts-spendingAccountsLazyModule.js.map (lazy-modules-spending-accounts-spendingAccountsLazyModule) 1.71 MB  [rendered]
chunk {lazy-modules-vision-visionLazyModule} lazy-modules-vision-visionLazyModule.js, lazy-modules-vision-visionLazyModule.js.map (lazy-modules-vision-visionLazyModule) 5.5 kB  [rendered]
chunk {lazy-modules-vivr-vivrLazyModule} lazy-modules-vivr-vivrLazyModule.js, lazy-modules-vivr-vivrLazyModule.js.map (lazy-modules-vivr-vivrLazyModule) 20.5 kB  [rendered]
chunk {main} main.js, main.js.map (main) 2.09 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 48.9 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 11.9 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 557 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 14.9 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.7 MB [initial] [rendered]
Date: 2020-01-09T17:53:00.923Z - Hash: 8d9ce636f7344ef479d7 - Time: 1078400ms

Date: 2020-01-09T17:53:41.910Z - Hash: 8d9ce636f7344ef479d7
40 unchanged chunks

Time: 39900ms

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Actually I looked into it just now already. It’s indeed significantly slower, I am seeing 152s for the VE build and 944s for the Ivy build. The Ivy build process skyrocketed to ~33GB of RAM (with debugger and profiler attached) and that made me remember #33532. So, I turned off fullTemplateTypeCheck and indeed, this would resolve the issue.

The performance issue with fullTemplateTypeCheck has been fixed in TypeScript 3.8 dev builds (see microsoft/TypeScript#35205 and microsoft/TypeScript#35332), but that has not yet been released and is also not supported by Angular. I tried bumping the TS version in your app but that resulted in some compilation errors, so I decided to just disable fullTemplateTypeCheck. This brings the build time to be on par with the VE build, after excluding the time that ngcc takes. I have not looked into locating the template that is taking so long to compile, as that’s quite hard to identify.

I will be looking into where the time is spent some more, as this is an interesting project to profile.

Build size uncompressed goes from 26.4 MB with VE to just 10.3 MB with Ivy❗️Hopefully it still works…

@JoostK on the note of Angular not supporting the version of typescript. Do you know when angular will be upgrading it’s support. Also would it be possible for us to bypass the typescript version check and allow us to experiment on different version. Just without support

@Jordan-Hall you can set disableTypeScriptVersionCheck to true in tsconfig.json under angularCompilerOptions. Also, TypeScript 3.8 has not yet been released; I don’t know when Angular can update to it. At the very least, it won’t happen before 9.1.