Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): fix normalization of the applicat…
Browse files Browse the repository at this point in the history
…ion builder extensions

(cherry picked from commit 8d56365)
  • Loading branch information
leosvelperez authored and dgp1130 committed Jan 9, 2024
1 parent ecdad2a commit 2a02b13
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ export function buildApplication(
context: BuilderContext,
pluginsOrExtensions?: Plugin[] | ApplicationBuilderExtensions,
): AsyncIterable<ApplicationBuilderOutput> {
let extensions;
let extensions: ApplicationBuilderExtensions | undefined;
if (pluginsOrExtensions && Array.isArray(pluginsOrExtensions)) {
extensions = {
codePlugins: pluginsOrExtensions,
};
} else {
extensions = pluginsOrExtensions;
}

return buildApplicationInternal(options, context, undefined, extensions);
Expand Down

0 comments on commit 2a02b13

Please sign in to comment.