Repository navigation
refactor(@angular/build): collect and log build errors in library builder - #34328
Conversation
…lder Instead of throwing errors inside `buildAction` and `compileLibrary` during progress spinner execution, collect formatted diagnostic errors, warnings, and informational logs into `BuildActionResult` and log them via `context.logger` after `withProgress` completes, matching the behavior of the `application` builder.
2973f1f to
c22b3bf
Compare
There was a problem hiding this comment.
Code Review
This pull request refactors the library builder pipeline to aggregate and log build diagnostics (errors, warnings, and informational logs) as structured results (BuildActionResult) rather than throwing exceptions immediately. Key changes include updating buildAction, compileLibrary, and dependency verification to return diagnostic messages, introducing helper functions like logMessages and collectEntryPointsToBundle, and updating corresponding unit tests to assert on the logged output. I have no feedback to provide as there are no review comments.
|
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. |
Instead of throwing errors inside
buildActionandcompileLibraryduring progress spinner execution, collect formatted diagnostic errors, warnings, and informational logs intoBuildActionResultand log them viacontext.loggerafterwithProgresscompletes, matching the behavior of theapplicationbuilder.