rollup / rollup/rollup

Persist cache to disk?

Open
#2,182 32 comments 31 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

s¹ 🔥🔥🔥 critical t³ ✨ enhancement
Dominant language
JavaScript
Stars
26.3k
Forks
1.8k
Avg merge
2d 11h
Merged PRs (30d)
20

Description

This Twitter thread got me thinking — perhaps it would make sense for Rollup to (optionally?) write its cache to disk for faster cold builds. At the moment the cache is only used (at least by the CLI) when running in --watch mode, by keeping the results in memory.

After all, if Parcel are going to use our ideas it's only fair we borrow some of theirs as well 😀

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Rollup's cache is used by the CLI in --watch mode, then examine the linked discussion and the current cache behavior. Define the disk-cache format, invalidation rules, and CLI integration before implementation; done should include a clear cold-build speedup without stale or incompatible results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.