auto-import.ts 356 B

1234567891011
  1. import autoImport from 'unplugin-auto-import/vite';
  2. import { VantResolver } from '@vant/auto-import-resolver';
  3. export default function createAutoImport() {
  4. return autoImport({
  5. include: [/\.[tj]sx?$/, /\.vue\?vue/, /\.md$/],
  6. imports: ['vue', 'vue-router', 'pinia'],
  7. resolvers: [VantResolver()],
  8. dts: 'src/types/auto-imports.d.ts'
  9. });
  10. }