Skip to content
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

feat(@schematics/angular): directly use @angular/build in new projects #29652

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clydin
Copy link
Member

@clydin clydin commented Feb 14, 2025

The @angular/build package is now used directly within all newly created projects and replaces the previous usage of the @angular-devkit/build-angular package. This has the advantage of removing the need to install all of the Webpack related transitive dependencies contained within @angular-devkit/build-angular that are used to support the browser builder. This results in a significant reduction in both total dependency count and disk install size for new projects. New projects that would prefer to use the Webpack-based browser builder can still install the @angular-devkit/build-angular package within the workspace.

The @angular/[email protected] package currently has a total unpacked size of ~115 MB.
The @angular-devkit/[email protected] package currently has a total unpacked size of ~291 MB.

@clydin clydin force-pushed the ng-new/angular-build-only branch 3 times, most recently from 618373a to d41c5da Compare February 18, 2025 15:20
@clydin clydin force-pushed the ng-new/angular-build-only branch 2 times, most recently from 135a055 to ee4216f Compare February 18, 2025 16:29
@clydin clydin added the target: major This PR is targeted for the next major release label Feb 18, 2025
@clydin clydin force-pushed the ng-new/angular-build-only branch 6 times, most recently from 94a2253 to b9818c6 Compare February 19, 2025 21:27
The `@angular/build` package is now used directly within all newly created
projects and replaces the previous usage of the `@angular-devkit/build-angular`
package. This has the advantage of removing the need to install all of the
Webpack related transitive dependencies contained within `@angular-devkit/build-angular`
that are used to support the `browser` builder. This results in a significant
reduction in both total dependency count and disk install size for new projects.
New projects that would prefer to use the Webpack-based `browser` builder can still
install the `@angular-devkit/build-angular` package within the workspace.

The `@angular/[email protected]` package currently has a total unpacked size of ~115 MB.
The `@angular-devkit/[email protected]` package currently has a total unpacked size of ~291 MB.
@clydin clydin force-pushed the ng-new/angular-build-only branch from b9818c6 to 84ed1a5 Compare February 19, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: @schematics/angular detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant