Skip to content

Commit

Permalink
fix(angular): migration of browserTarget to buildTarget should handle…
Browse files Browse the repository at this point in the history
… empty config #26681
  • Loading branch information
Coly010 committed Jun 26, 2024
1 parent 3a2e8d4 commit 529c08d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function updateConfig(config: {
browserTarget?: string;
buildTarget?: string;
}): void {
if (config.browserTarget) {
if (config && config.browserTarget) {
config.buildTarget ??= config.browserTarget;
delete config.browserTarget;
}
Expand Down

0 comments on commit 529c08d

Please sign in to comment.