components.ts 308 B

12345678910
  1. import components from 'unplugin-vue-components/vite';
  2. import { VantResolver } from '@vant/auto-import-resolver';
  3. export default function createComponents() {
  4. return components({
  5. include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
  6. resolvers: [VantResolver()],
  7. dts: 'src/types/components.d.ts'
  8. });
  9. }