From 3e2f09ca88ed623da1cd6e34449e5718c01d6b30 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 15 Apr 2021 11:12:23 +0200 Subject: [PATCH] test: enable `namedChunks` in `cli-hello-world-lazy` integration test (#41636) This ensure that the name of the lazy chunk remains the same during updates. When not using `namedChunks` the id of the bundle is set to "deterministic", which means that the bundle name changes whenever the bundle is updated. PR Close #41636 --- goldens/size-tracking/integration-payloads.json | 2 +- integration/cli-hello-world-lazy/angular.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/goldens/size-tracking/integration-payloads.json b/goldens/size-tracking/integration-payloads.json index eec8a92b59..e190459892 100644 --- a/goldens/size-tracking/integration-payloads.json +++ b/goldens/size-tracking/integration-payloads.json @@ -41,7 +41,7 @@ "runtime-es2015": 3354, "main-es2015": 295076, "polyfills-es2015": 36975, - "434-es2015": 796 + "src_app_lazy_lazy_module_ts-es2015": 825 } } }, diff --git a/integration/cli-hello-world-lazy/angular.json b/integration/cli-hello-world-lazy/angular.json index 8d2219af23..68dfcdf022 100644 --- a/integration/cli-hello-world-lazy/angular.json +++ b/integration/cli-hello-world-lazy/angular.json @@ -13,6 +13,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "namedChunks": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", @@ -41,7 +42,6 @@ "outputHashing": "all", "sourceMap": false, "extractCss": true, - "namedChunks": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true,