Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Custom cache dir handling

Open
#2,298 0 comments 2 reactions 2 assignees View on GitHub

@wan9chi is already working on this.

Since Aug 2, 2026.

Assessment

This issue has not been assessed yet.

Description

pending triage
Description

Right now there is no documented way to set a custom cache dir for the Vite+ cache folder. The undocumented version is via an env variable.

At the same time, Vite itself has a cachedDir option that could be used (or mistaken by users as the desired option)

Suggested solution
  1. Add a dedicated run.cacheDir option
  2. If it is not set, use <top-level cacheDir>/task-cache (Vite's option)
  3. If that isn't set either, use the default node_modules/.vite/task-cache dir

To make it performant, this probably needs changes in Vite Task itself

Alternative

No response

Additional context

No response

Validations
  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Dominant language
Rust
Stars
5.8k
Forks
263
Avg merge
1d 4h
Merged PRs (30d)
148

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.

More from voidzero-dev/vite-plus

All issues in voidzero-dev/vite-plus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.