Skip to content
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

Plugin doesn't respect tsconfig.json exclude files. #247

Open
jtillwickEA opened this issue Nov 30, 2024 · 1 comment
Open

Plugin doesn't respect tsconfig.json exclude files. #247

jtillwickEA opened this issue Nov 30, 2024 · 1 comment

Comments

@jtillwickEA
Copy link

I have a simple react project and I want to prevent vite from transforming certain files from within my src directory. I have an exclude line in tsconfig.json and tsc ignores these files, but vite doesn't. It complains that it can't find modules imported in those files. I don't want those files transformed at all.

How do fix?

@ArnaudBarre
Copy link
Member

That's how bundler works, they try to resolve imports that are not type only. If your import is a runtime one, what would it mean to no transform it?

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

No branches or pull requests

3 participants