vite-plugin-vue
vite-plugin-vue copied to clipboard
filter advance
Related plugins
-
[ ] plugin-vue
-
[X] plugin-vue-jsx
Description
According to the existing code:
const filter = createFilter(include || /\.[jt]sx$/, exclude)
...
if (filter(id) || filter(filepath)) {
We cannot exclude files by querying strings, for example /\?xxx$/
Suggested solution
Change the code to
const includeFilter = createFilter(include || /\.[jt]sx$/)
const excludeFilter = createFilter('**',exclude)
...
if((includeFilter(id) || includeFilter(filepath)) && excludeFilter(id) && excludeFilter(filepath)){
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
PR welcome