Suggest an editImprove this articleRefine the answer for “How does Turbopack cache build results?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)Turbopack caches build results at the level of each module and each step of its processing, storing intermediate and final artifacts in a local persistent cache. **Key point:** Turbopack caches the build deeply and stage by stage, using hashes and a modular structure to reuse the maximum amount of results and rebuild only the affected parts of the project.Shown above the full answer for quick recall.Answer (EN)ImageTurbopack caches build results **at the level of each module and each step of its processing**, storing intermediate and final artifacts in a local persistent cache. This allows it to reuse previously computed data and rebuild only what actually changed. --- ### How caching works under the hood 1. **Storing results on a per-module basis** Each file (JS, TS, CSS, etc.) is cached after analysis, transformation, and dependency computation. If a file has not changed, Turbopack simply takes its result from the cache. 2. **Integrity control via hashes** File contents and environment parameters are hashed. If the hash matches, no rebuild is triggered for that module. 3. **Caching every stage of the pipeline** Turbopack stores not only the final module, but also the intermediate steps: AST parsing, import resolution, transformations, plugin results, and so on. 4. **Incremental graph recalculation** When one file changes, only the related nodes of the dependency graph are recalculated, not the whole project. --- ### What this gives you | Mechanism | Benefit | |---|---| | Module caching | rebuilding is not performed unnecessarily | | Hash checks | excludes recalculating unchanged parts | | Caching intermediate stages | saves CPU on complex transformations | | Incremental model | only the necessary minimum is updated | --- ### Summary Turbopack caches the build **deeply and stage by stage**, using hashes and a modular structure to reuse the maximum amount of results and rebuild only the affected parts of the project. This is exactly the basis of its high speed on subsequent updates.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.