首先你需要安装unplugin-vue-components、unplugin-auto-import和@jianmu/unplugin-vue-jm-component这三款插件 npm install -D unplugin-vue-components unplugin-auto-import unplugin-vue-jm-component 然后把下列代码插入到你的Vite的配置文件中 Vite
name: 'Unplugin-vue-component Resolver', entries: ['./src/resolver/index'], outDir: '../radix-vue/dist', clean: false, declaration: true, externals: [ 'unplugin-vue-components', ], }, ]) 8 changes: 3 additions & 5 deletions 8 packages/radix-nuxt/package.json → packages/plugins/...
unplugin-generate-component-name A plugin for auto generate vue component name. unplugin cherry7 •0.3.0•9 months ago•0dependents•MITpublished version0.3.0,9 months ago0dependentslicensed under $MIT 300 unplugin-vue-router unplugin ...
Describe the bug As shown below, even if the component is imported through a relative path, the component parsing will be confused, and enabling the folder as the namespace cannot solve the problem: src/components/mall-public/head/index.vue; src/components/mall-public/mall-public-head.vue; R...
unplugin-svg-component 因此, 基于以上几个痛点, 我便鼓捣出unplugin-svg-component, 项目使用Anthony Fu大佬的unplugin项目模板, 因此支持 vite, webpack, rollup, esbuild 等多个打包工具, 目前插件主要针对几个痛点做了以下功能: 根据项目类型 vue/react, 自动生成对应的组件(这里的原理是检测项目中的dependenci...
使用vue3 + vite + Vant 搭建移动端项目,为了避免全量引入 vant 导致打包体积过大,又不想一个一个组件手动导入,所以就选择了 vant 官方推荐的方法,使用unplugin-vue-components插件自动引入组件,并按需引入组件的样式。 但是运行过程中遇到了报错:[vite] Internal server error: Failed to resolve import "vant/es...
[unplugin-vue-components]component"Example2"...has naming conflicts with other components,ignored. 意思是说,命名重复了,之前一直没有这个问题的,只是因为引用了unplugin-vue-components导致的,所以很大概率是这个插件的问题,那就网上查了一下,发现别人也是碰到这个问题的,解决方式就是,需要在vite.config.ts中进...
@intlify/unplugin-vue-i18n unplugin for Vue I18n i18n plugin unplugin transform webpack vite vue vue-i18n kazupon• 6.0.8 • a month ago • 62 dependents • MITpublished version 6.0.8, a month ago62 dependents licensed under $MIT 1,573,163 @vue-macros/setup-component setupComponen...
npm install --save-dev eslint eslint-plugin-vue System Info System: OS: macOS 12.6.1 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 26.85 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.18.2 -~/Library/Caches/fnm_multishells/73193_1721734107367/bin...
unplugin-vue-router-extend Automatically generate component's name based on route.name. Support getNuxtStyleRouteName method to generate NuxtJs-style route name declare module 'vue-router/auto/routes' { export interface RouteNamedMap { 'index': RouteRecordInfo<'index', '/', Record<never, never...