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

排除一些文件后,还是生成TS类型 #751

Closed Ting-Code closed 1 week ago

Ting-Code commented 1 month ago

Describe the bug

配置了 image 还是生成了Ts类型,但组件已无法使用 image

Reproduction

exclude: [/once.vue$/, /once.vue\?vue/],

System Info

win10
node 18

Used Package Manager

npm

Validations

Kanade-Lu commented 1 week ago

https://github.com/unplugin/unplugin-vue-components/issues/420

参考这里,使用globs解决