Skip to content

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

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

Merged
merged 1 commit into from
Mar 5, 2025

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/build@19.2.0-next.2 package currently has a total unpacked size of ~115 MB.
The @angular-devkit/build-angular@19.2.0-next.2 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 8 times, most recently from 84ed1a5 to 49c16ce Compare February 24, 2025 23:31
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/build@19.2.0-next.2` package currently has a total unpacked size of ~115 MB.
The `@angular-devkit/build-angular@19.2.0-next.2` package currently has a total unpacked size of ~291 MB.
@clydin clydin force-pushed the ng-new/angular-build-only branch from 49c16ce to 8865bff Compare February 24, 2025 23:37
@clydin clydin marked this pull request as ready for review February 25, 2025 00:15
@clydin clydin requested a review from alan-agius4 March 4, 2025 17:58
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 4, 2025
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 5, 2025
@alan-agius4 alan-agius4 merged commit 093c5a3 into angular:main Mar 5, 2025
31 checks passed
@clydin clydin deleted the ng-new/angular-build-only branch March 5, 2025 11:57
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker 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.

2 participants