Skip to content

feat: swcCacheDir option #495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RomanHotsiy
Copy link

Description

When using this plugin swc creates an .swc older in the cwd. It would be great to allow customizing it especially for meta-frameworks built on top of vite.

@RomanHotsiy RomanHotsiy force-pushed the feat/swc-cache-dir branch from 572d439 to 43d2dc9 Compare June 6, 2025 13:31
Copy link
Member

@ArnaudBarre ArnaudBarre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What value will you use for this option?

I wondering if we should always set it to node_modules/.cache/swc

@RomanHotsiy
Copy link
Author

RomanHotsiy commented Jun 8, 2025

What value will you use for this option?

@ArnaudBarre mainly being able to configure it to node_modules/.cache/swc. It's fine for projects to add this dir to gitignore but we build meta-framework on top of vite and it's not good UX.

I wondering if we should always set it to node_modules/.cache/swc

This is a great idea, I've updated the default value. Could you take a look? I would still allow to customize it programmatically for the cases where node_modules is not available in cwd (e.g. we run our tool using npx)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants