Repository navigation
perf(@angular/build): enable TypeScript incremental build cache in library builder - #34316
Conversation
There was a problem hiding this comment.
Code Review
This pull request enables persistent caching for the library builder by extracting cacheOptions and passing cachePath to the compilation options when caching is enabled. It also adds an integration test to verify that .tsbuildinfo is correctly written and reused. The review feedback recommends using optional chaining when accessing cacheOptions to prevent potential runtime TypeErrors if cacheOptions is undefined.
133ef72 to
c5703f5
Compare
…brary builder Pass the normalized `cacheOptions.path` to `compilationInstance.initialize` when persistent disk caching is enabled so TypeScript writes and reuses `.tsbuildinfo` across builds.
c5703f5 to
93fef8b
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. |
Pass the normalized
cacheOptions.pathtocompilationInstance.initializewhen persistent disk caching is enabled so TypeScript writes and reuses.tsbuildinfoacross builds.