diff --git a/packages/angular/src/executors/application/utils/normalize-options.ts b/packages/angular/src/executors/application/utils/normalize-options.ts index b6e4cb5bc6138..f6b6522c8ac9b 100644 --- a/packages/angular/src/executors/application/utils/normalize-options.ts +++ b/packages/angular/src/executors/application/utils/normalize-options.ts @@ -28,11 +28,12 @@ export function normalizeOptions( } } - return { - ...options, - appShell: angularMajorVersion < 19 ? options.appShell ?? false : undefined, - prerender: - angularMajorVersion < 19 ? options.prerender ?? false : undefined, - security, - }; + let appShell = options.appShell; + let prerender = options.prerender; + if (angularMajorVersion < 19) { + appShell ??= false; + prerender ??= false; + } + + return { ...options, appShell, prerender, security }; }