-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng new --ssr=false
creates angular.json
with application
builder
#26627
Comments
This is expected as the browser-esbuild is a compatibility builder that will be removed in the future. We are looking into ways to mitigate the output path change. |
This is intended behavior. The In regards to the output path, the output path option specifies the path in which build artifacts are placed following a successful build. Not all build artifacts are intended to be used by a browser nor are they all necessarily expected to be publicly exposed. This is especially true with SSR, but also regardless of the use of SSR. The consistent and well defined output artifact structure also provides a stronger guarantee for cloud providers, enabling more accurate and streamlined deployment in these cases. Deployment and/or staging steps post-build are an effective means to ensure that files intended to be accessible to browser clients, including potentially files not generated by the build system or that require post-processing, are placed in there intended and expected locations. |
@dgp1130 says that it is not quite correct: Could you please clarify this? |
The browser-esbuiler is compatibility builder and is the easier way to migrate to use an esbuild based builder. That said, using the application builder is preferred and eventually the long term goal is to remove the browser-esbuild based builder. |
According to the other issue that was raised, If people are already migrating their CI/CD pipelines and build options to use |
I completely agree with @ChrisCopelandSF
I understand the idea, but in practice, it just requires one additional step on CI/build servers, that's it, no extra benefits.
As an idea: add |
I don't feel comfortable to discuss anything in closed issues, so I've opened a feature request: #26632 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
ng new
Description
Right now
ng new
createsangular.json
with@angular-devkit/build-angular:application
in thebuilder
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 fieldbrowser
).Otherwise, the default config will lead to issues, described in #26304.
Minimal Reproduction
ng new example --ssr=false
The text was updated successfully, but these errors were encountered: