Skip to content

ng new --ssr=false creates angular.json with application builder #26627

@e-oz

Description

@e-oz

Command

ng new

Description

Right now ng new creates angular.json with @angular-devkit/build-angular:application in the builder field, even if SSR was not selected (or --ssr=false was applied).
It should set @angular-devkit/build-angular:browser-esbuild there and generate fields, related to this builder (right now it creates field browser).
Otherwise, the default config will lead to issues, described in #26304.

Minimal Reproduction

ng new example --ssr=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions