Repository navigation
fix(@angular/build): capture and report Rolldown warnings in library builder - #34228
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Angular library builder pipeline to capture and propagate warnings and errors emitted during the Rolldown bundling process, including adding a test case to verify warning logging. The review feedback suggests preserving the original error objects and stack traces instead of converting them to strings. Specifically, it is recommended to change the type of errors to unknown[] in the bundle outputs, push the raw error objects directly in the catch block, and throw the original error or an AggregateError in the build action to avoid losing critical diagnostic details.
…in library builder Updates `bundleEntryPoints` to capture Rolldown warning logs via `onLog` and bundling errors, returning them to `buildAction` so warnings are logged via the builder logger instead of `console.warn` and errors are properly surfaced.
ab5cf42 to
93b224d
Compare
|
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. |
Updates
bundleEntryPointsto capture Rolldown warning logs viaonLogand return them tobuildActionso warnings are logged via the builder logger instead ofconsole.warn.