Skip to content

feat(@angular/build): add library builder - #34106

Merged
alan-agius4 merged 4 commits into
angular:mainfrom
alan-agius4:feat/library-builder
Sep 30, 2026
Merged

alan-agius4 merged 4 commits into
angular:mainfrom
alan-agius4:feat/library-builder

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

PR Checklist

Please check to confirm your PR fulfills the following requirements:

PR Type

  • Feature

What is the current behavior?

Currently, there is no native @angular/build:library builder in @angular/build.

Issue Number: N/A

What is the new behavior?

Add a new native @angular/build:library builder providing a modern, high-performance compilation and packaging pipeline.

Does this PR introduce a breaking change?

  • No

Other information

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @angular/build labels Sep 17, 2026
@alan-agius4
alan-agius4 force-pushed the feat/library-builder branch 3 times, most recently from e9c43b0 to 67110b0 Compare September 17, 2026 09:36
@alan-agius4
alan-agius4 requested a review from clydin September 17, 2026 09:38
gemini-code-assist[bot]

This comment was marked as outdated.

@angular angular deleted a comment from gemini-code-assist Bot Sep 17, 2026
@angular angular deleted a comment from gemini-code-assist Bot Sep 17, 2026
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new library builder (@angular/build:library) designed to compile, bundle, and package Angular libraries in compliance with the Angular Package Format (APF). It includes features such as incremental compilation, watch mode, asset copying, secondary entry point resolution, and package.json generation. The review feedback highlights a few critical areas for improvement: ensuring the package name is updated in options when package.json changes in watch mode, optimizing startup by avoiding redundant reads of package.json, and capturing and propagating stylesheet compilation warnings to the user.

@alan-agius4
alan-agius4 marked this pull request as ready for review September 17, 2026 09:56

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new library builder for Angular, enabling the compilation, bundling, and packaging of libraries in accordance with the Angular Package Format (APF). The changes include the core builder logic, a dependency graph scanner for entry points, an incremental compilation pipeline, and support for secondary entry points. My review highlights performance optimizations for the dependency predicate and file change detection logic, which are critical for maintaining build speed in larger projects.

@alan-agius4
alan-agius4 force-pushed the feat/library-builder branch 11 times, most recently from 7239409 to 4ee7685 Compare September 17, 2026 12:39
@alan-agius4 alan-agius4 added target: minor This PR is targeted for the next minor release action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 17, 2026
@alan-agius4
alan-agius4 force-pushed the feat/library-builder branch 2 times, most recently from 5ef0ac4 to b19ab2c Compare September 17, 2026 13:28
thePunderWoman pushed a commit to angular/angular that referenced this pull request Sep 21, 2026
Aligning documentation of Angular Package Format (APF) with angular/angular-cli#34106 and ng-packagr/ng-packagr#3360
thePunderWoman pushed a commit to angular/angular that referenced this pull request Sep 21, 2026
Aligning documentation of Angular Package Format (APF) with angular/angular-cli#34106 and ng-packagr/ng-packagr#3360

(cherry picked from commit 0006391)
thePunderWoman pushed a commit to angular/angular that referenced this pull request Sep 21, 2026
Aligning documentation of Angular Package Format (APF) with angular/angular-cli#34106 and ng-packagr/ng-packagr#3360

(cherry picked from commit 0006391)
@alan-agius4
alan-agius4 force-pushed the feat/library-builder branch 7 times, most recently from f143555 to 325c0bf Compare September 28, 2026 16:19
Add a new native `@angular/build:library` builder providing a modern, high-performance compilation and packaging pipeline.
@alan-agius4
alan-agius4 requested a review from clydin September 30, 2026 16:52
@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 Sep 30, 2026
@alan-agius4
alan-agius4 merged commit c5b8bf0 into angular:main Sep 30, 2026
40 checks passed
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4
alan-agius4 deleted the feat/library-builder branch September 30, 2026 18:13
@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request 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.

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: @angular/build detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants