unplugin-vue-components
unplugin-vue-components copied to clipboard
📲 On-demand components auto importing for Vue
### Description 1. Add auto import PrimeFlex configuration When we use PrimveVue, the PrimeFlex is necessary. 2. About PrimeVue FullCalendar When I use PrimeVue FullCalendar with auto import at development...
### Describe the bug not support "as" alias. `unplugin-vue-components` config: ```ts unPluginVueComponent({ resolvers: [ (componentName: string) => { console.log(componentName) }, ], }), ``` vue template code: ```ts import { EIRadio...
### Description An option was added for transforming declaration lines before writing them to the final dts file. ### Linked Issues [#460](https://github.com/antfu/unplugin-vue-components/issues/460) ### Additional context This option allows me to...
我按照 README.md 中的配置依次配置后,在开发模式下是正常可以按需加载的, 按照vite的配置使用了CDN CDN 配置 ``` // html // vite rollupOptions: { // indicate which modules should be treated as external, external: ['vue'], plugins: [ externalGlobals({ vue: 'Vue' })...
### Describe the bug Both local `dev` and `build` can be accessed normally, and the problem occurs after the release There is an exception code comment in the component 
例如,有如下组件目录结构: ``` --component-a ----child-a.vue ----child-b.vue ----index.vue ``` 这样`index.vue`、`child-a.vue`、`child-b.vue`都会生成类型声明,但实际上`child-a`和`child-b`组件作为`component-a`组件的子组件,并不需要单独对外暴露的,而且`child-a.vue`、`child-b.vue`还有可能与其它组件重名,有没有办法只匹配到名字为`index`的组件才生成类型声明,尝试了`include`属性,好像没效果
It would be great if you could add config options to transform dts lines before joining with a new line. ([component](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/declaration.ts#L129), [directive](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/declaration.ts#L135)) ```javascript Components({ dtsTransformComponent: lines => lines, dtsTransformDirective: lines...