Skip to content

Commit

Permalink
fix(angular): normalize prerender and appShell options of the applica…
Browse files Browse the repository at this point in the history
…tion executor correctly
  • Loading branch information
leosvelperez committed Dec 10, 2024
1 parent e3f8c81 commit c10df8e
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

0 comments on commit c10df8e

Please sign in to comment.