-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite还是不能组件按需引入吗?手动引入后打包有2M多 #1804
Comments
用的就是这个,但是还没有resolvers,自定义的resolvers会导致组件异常 |
样式文件缺少依赖关系,如果 A 组件内部使用了 B 组件,使用 unplugin 插件自动导入的只有 A 的样式 |
主要是需要组件可以自动引入注册有TS提示,样式的话可以手动全部导入,因为我觉得unplugin-vue-components导入样式有问题,例如vant样式导入 |
eiinu 大佬已经在解决依赖性,样式丢失问题,大家敬请期待 |
Pin一个unplugin-vue-components 引入 |
4.0 版本已支持 unplugin-vue-components 插件 |
What problem does this feature solve?(这个功能解决的问题)
手动引入和打包资源过大的问题
What does the proposed API look like?(期望的 API)
希望能改下组件引入的形式
The text was updated successfully, but these errors were encountered: