@pagoda-tools/auto-import-resolver
v1.0.3
Published
## 安装
Downloads
1
Readme
@pagoda-tools/auto-import-resolver
安装
# npm
npm install unplugin-vue-components @pagoda-tools/auto-import-resolver -D
# yarn
yarn add unplugin-vue-components @pagoda-tools/auto-import-resolver -D
用法
vite
// vite.config.ts
import vue from '@vitejs/plugin-vue';
import Components from 'unplugin-vue-components/vite';
import { PagodaUiResolver } from '@pagoda-tools/auto-import-resolver' ;
export default defineConfig({
plugins: [
vue(),
Components({
resolvers: [PagodaUiResolver()],
}),
],
})