unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.65k stars 341 forks source link

Exclude comonents by filename #748

Closed cirolosapio closed 1 week ago

cirolosapio commented 2 months ago

Describe the bug

I'm trying to exclude some components by filename but they are always included in the components.d.ts file

Reproduction

https://stackblitz.com/edit/vitejs-vite-dkyihs?file=components.d.ts&terminal=dev

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm

Used Package Manager

npm

Validations

stackblitz[bot] commented 2 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Kanade-Lu commented 1 week ago

https://github.com/unplugin/unplugin-vue-components/issues/420 you can solve it by "globs" like globs: [ '!src/components/*/excludes/.vue', ]