Respect Vite cache directory for emitted data
@webfansplz is already working on this.
Since Mar 19, 2026.
Assessment
This issue has not been assessed yet.
Description
Clear and concise description of the problem
When running Vite with devtools enabled, various files are emitted to the node_modules/.rolldown directories. In some setups, e.g. with Yarn PnP, one does not necessarily have a node_modules directory, causing this to be created by this tooling. It would be nice to have a way to control where such assets are emitted.
Suggested solution
Leverage the cacheDir option from Vite as default value instead of node_modules, to allow for easy overriding.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 89
- Avg merge
- 18h 46m
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitejs/devtools
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
-
pending triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
pending triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
pending triage
Difficulty 3/5 1-2 days Newbie friendliness 62/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·