Repository navigation
refactor(@angular/build): consolidate library asset collection and watch check - #34230
Conversation
…tch check Remove `checkAssetChanges` and reuse the assets collected by `collectAssetsToEmit` in watch mode so asset matching only runs once per watch iteration.
83cf2bf to
5f90459
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors the asset collection and change detection logic in the Angular library builder. It replaces the checkAssetChanges utility with a more direct approach that collects assets to emit (collectAssetsToEmit) during the watch loop, passing them directly to the build action. This eliminates redundant asset matching and simplifies the watch loop logic. Additionally, the responsibility of adding asset paths to the watched files set is moved from the asset collection utility to the build action. There are no review comments, and I have no feedback to provide.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Remove
checkAssetChangesand reuse the assets collected bycollectAssetsToEmitin watch mode so asset matching only runs once per watch iteration.