Skip to content

Allow include/exclude to work on Vue files #102

Open
@cinderisles

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions