Skip to content

Respect Vite cache directory for emitted data #228

@jnoordsij

Description

@jnoordsij

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions