From 427286bce0a952f29f6601a401dbfcf08b606aca Mon Sep 17 00:00:00 2001 From: Sebastian Podgajny Date: Thu, 12 Dec 2024 12:36:07 +0100 Subject: [PATCH] fix(angular): correctly normalize dev-server options For Angular > 19 schema hmr option was ignored, it was impossible to disable hmr as default value changed in ng19 https://github.com/angular/angular/issues/59058 --- .../angular/src/builders/dev-server/lib/normalize-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/src/builders/dev-server/lib/normalize-options.ts b/packages/angular/src/builders/dev-server/lib/normalize-options.ts index 6df81466fd712..ca28d53f8f509 100644 --- a/packages/angular/src/builders/dev-server/lib/normalize-options.ts +++ b/packages/angular/src/builders/dev-server/lib/normalize-options.ts @@ -21,7 +21,7 @@ export function normalizeOptions(schema: Schema): NormalizedSchema { host: schema.host ?? 'localhost', port: schema.port ?? 4200, liveReload: schema.liveReload ?? true, - hmr: angularMajorVersion < 19 ? schema.hmr ?? false : undefined, + hmr: schema.hmr ?? (angularMajorVersion < 19 ? false : undefined), open: schema.open ?? false, ssl: schema.ssl ?? false, };