Skip to content

安装

安装自动引入插件 unplugin-vue-components

bash
pnpm add unplugin-vue-components -D

配置

Vite

以 Vite 为例

ts
import { defineConfig } from 'vite'

import components from 'unplugin-vue-components/vite'
import IntroxdResolver from '@introxd/components/resolver'

export default defineConfig({
  plugins: [
    components({
      resolvers: [
        IntroxdResolver()
      ]
    })
  ]
})