Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Jul 30, 2025

Refactors the chunk optimizer by introducing several helper functions to improve readability and maintainability. The rolldownToEsbuildMetafile function now converts rolldown output to an esbuild metafile, and the optimizeChunks function has been updated to use it. Additionally, helper functions have been created for generating initial file records and chunk optimization failure messages.

Closes #28830

@clydin clydin added the target: minor This PR is targeted for the next minor release label Jul 30, 2025
@clydin clydin force-pushed the chunk-optimizer/metadata branch from 817463c to dfa9f01 Compare July 30, 2025 22:04
…unk optimization

Refactors the chunk optimizer by introducing several helper functions to improve readability and
maintainability. The `rolldownToEsbuildMetafile` function now converts rolldown output to an esbuild metafile, and
the `optimizeChunks` function has been updated to use it. Additionally, helper functions have been created for
generating initial file records and chunk optimization failure messages.
@clydin clydin force-pushed the chunk-optimizer/metadata branch from dfa9f01 to d2138b2 Compare July 30, 2025 22:10
@clydin clydin marked this pull request as ready for review July 30, 2025 22:42
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 30, 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 Aug 11, 2025
@alan-agius4 alan-agius4 merged commit 6d14e0c into angular:main Aug 11, 2025
31 of 32 checks passed
@clydin clydin deleted the chunk-optimizer/metadata branch August 11, 2025 13:43
@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 Sep 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: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update bundle meta when using NG_BUILD_OPTIMIZE_CHUNKS
2 participants