Skip to content

refactor(@angular/build): create shared utility for external metadata#31735

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:unit-test/external-metadata
Nov 10, 2025
Merged

refactor(@angular/build): create shared utility for external metadata#31735
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:unit-test/external-metadata

Conversation

@clydin
Copy link
Member

@clydin clydin commented Nov 10, 2025

The logic to process external metadata from build results was previously implemented directly within the dev-server.

This commit extracts this logic into a shared utility function, updateExternalMetadata, and moves it to a common location. The dev-server is updated to use this new function.

Additionally, the Vitest unit test builder is modified to leverage this utility, allowing it to correctly track external dependencies for Vite's dependency optimization.

The logic to process external metadata from build results was previously implemented directly within the dev-server.

This commit extracts this logic into a shared utility function, `updateExternalMetadata`, and moves it to a common location. The dev-server is updated to use this new function.

Additionally, the Vitest unit test builder is modified to leverage this utility, allowing it to correctly track external dependencies for Vite's dependency optimization.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Nov 10, 2025
@clydin clydin requested a review from alan-agius4 November 10, 2025 03:07
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 10, 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 Nov 10, 2025
@alan-agius4 alan-agius4 merged commit 4cf1aa3 into angular:main Nov 10, 2025
34 of 35 checks passed
@alan-agius4
Copy link
Collaborator

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

@clydin clydin deleted the unit-test/external-metadata branch November 10, 2025 11:56
@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 Dec 11, 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: @angular/build target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants