Repository navigation
refactor(@angular/build): encapsulate library build state in BuilderState and ExecutionResult - #34355
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the library builder's state management by introducing a BuilderState class to encapsulate incremental compilation state, replacing the previous SingleBuildState interface. It also updates the build pipeline to use this state class, improves the efficiency of tracking modified files, and refines the diagnostic reporting mechanism. I have reviewed the suggested improvements regarding pendingCompilationFiles accumulation and the efficiency of merging sets in compileLibrary, both of which are valid and should be incorporated.
…tate and ExecutionResult Introduce `BuilderState` and `ExecutionResult` to replace `SingleBuildState`, `BuildActionResult`, `LibraryCompilationDiagnostics`, and manual `watchedCompilationFiles` parameter threading across the library builder pipeline. `BuilderState` manages incremental compilation state, watched compilation files, pending compilation modifications across aborted watch iterations, and `ExecutionResult` diagnostic collection.
2aaad5e to
f68f56c
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. |
Introduce
BuilderStateandExecutionResultto replaceSingleBuildState,BuildActionResult,LibraryCompilationDiagnostics, and manualwatchedCompilationFilesparameter threading across the library builder pipeline.BuilderStatemanages incremental compilation state, watched compilation files, pending compilation modifications across aborted watch iterations, andExecutionResultdiagnostic collection.