vip-sale-promote-vue3/vite/plugins/auto-import.js

15 lines
354 B
JavaScript

import autoImport from 'unplugin-auto-import/vite'
import { VantResolver } from '@vant/auto-import-resolver';
export default function createAutoImport() {
return autoImport({
imports: [
'vue',
'vue-router',
'pinia'
],
resolvers: [VantResolver()],
dts: false
})
}