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

Allow include/exclude to work on Vue files #102

Open
cinderisles opened this issue Apr 23, 2024 · 0 comments
Open

Allow include/exclude to work on Vue files #102

cinderisles opened this issue Apr 23, 2024 · 0 comments

Comments

@cinderisles
Copy link

I noticed that this line prevents include/exclude from working on Vue files, because query.vue will always be true for Vue files.

My use case is that I have a project with both Vue2 and Vue3 SFCs that I want to process with the same Vite config. So I am trying to get the vite plugins to look in different folders based on the Vue version. But since query.vue is true for both Vue 2 and 3 SFC, the filter doesn't work, and Vue 2 files try to get run through Vue 3's compiler, causing errors

Please consider making the filter work regardless of the query.vue value.

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

No branches or pull requests

1 participant