unplugin-vue-components
unplugin-vue-components copied to clipboard
📲 On-demand components auto importing for Vue
### Describe the bug 代码打包后,报错 xx.confirm is not function 1. vite 配置: import Components from 'unplugin-vue-components/vite' import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' plugins: [ ... Components({ resolvers: [AntDesignVueResolver({ resolveIcons: true...
### Description When using glob with relative path, get wrong component name for index.vue Using pnpm init a monorepo project. Place UI components in /libs/ui, but run vite in project...
### Describe the bug when root directory contains "(2)", components within components folder are not auto imported. ### Reproduction https://codesandbox.io/p/devbox/test-2-y5jhnl ### System Info ```Shell System: OS: Linux 6.1 Debian GNU/Linux...
### Describe the bug Hello, This is not really a bug (but I think it is a strange behavior). I was wondering why, when a component is remove, (which trigger...
### Describe the bug I'm working on a documentation site using VitePress and a custom theme. I'd like to use `unplugin-vue-components` to automatically register both the components from the library...
### Clear and concise description of the problem It would be useful to pass the SFC's path to the resolver functions, currently only the extracted name of the component is...
### Description 目前 `vue` 官方 和 `volar` 插件具体进度冲突,我们不能急于抛弃 `@vue/runtime-core` 运行时。 > 因急于使用,目前已上传至 `npmjs` [@waset/unplugin-vue-components](https://www.npmjs.com/package/@waset/unplugin-vue-components),如过对本库造成影响可以联系我,我会进行删除 ### Linked Issues #389 #406 #477 ### Additional context 目前好像只有这个办法是比较直接能解决问题的,不影响已经抛弃 `@vue/runtime-core` 的用户,只需要启用运行时选项 `runtime`,它会在`vue`命名空间基础上再生成一遍`@vue/runtime-core`命名空间,能让类型提示正常。 ``` ts //...
### Clear and concise description of the problem now directives use ComponentCustomProperties, in vue 3.5, we should use GlobalDirectives ### Suggested solution none ### Alternative _No response_ ### Additional context...
### Clear and concise description of the problem ### 目前痛点 1. 由于是懒加载,当使用 scss 的时候访问到需要加载资源的时候会非常慢,没有个二三十秒加载不完,并且需要进行二次访问路由才能完成请求。 2. 重启服务后又要重新搞一遍,又是慢非常多,能否加入本地缓存,没有改动就不要再次编译了。 ### Suggested solution 1. 是否可以在程序启动的时候就开始编译 scss,不要在访问到确切界面的时候再进行编译。 比如项目使用 ELP 这个组件库,那么可以将其配置为启动就加载编译它,一面出现访问界面的时候卡顿。 2. 其实组件库配置好几乎就不会有任何修改了,把编译好的 scss 缓存到本地是不是就可以解决目前这个初次访问卡顿的问题? ###...
close #822 ### Description Error when "()" is included in Windows path (The "()" in the macOs path is normal) ### Linked Issues #822 ### Additional context