Repository navigation
refactor(@angular/build): extract shared concurrency, watcher, and styling utilities - #34110
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces several refactorings and new features, including the extraction of file watcher setup logic into a reusable setupWatcher helper, the addition of a dataurl option to inline stylesheet resources as base64 data URIs, and the introduction of new concurrency utilities (runConcurrent and mapConcurrent) to handle limited-concurrency asynchronous operations. Additionally, the getTailwindConfig helper was moved to postcss-configuration.ts. Feedback on these changes highlights a potential memory leak in setupWatcher where the 'abort' event listener registered on the AbortSignal is not removed when the watcher is closed.
838d09e to
6a226cd
Compare
bf3d7f7 to
048db98
Compare
048db98 to
81a1170
Compare
|
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. |
Extract shared utilities from the application builder so they can be reused across builders:
runConcurrentandmapConcurrentintoutils/concurrency.tssetupWatcherintotools/esbuild/watcher.tsgetTailwindConfigintoutils/postcss-configuration.tsresolvePathonBuilderHarness