mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-04 04:57:53 +08:00
20 lines
410 B
TypeScript
20 lines
410 B
TypeScript
import autoImport from 'unplugin-auto-import/vite'
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
export default function createAutoImport() {
|
|
return autoImport({
|
|
imports: [
|
|
'vue',
|
|
'vue-router',
|
|
'pinia',
|
|
],
|
|
dts: 'src/auto-imports.d.ts',
|
|
dirs: [
|
|
'./src/utils/composables/**',
|
|
],
|
|
resolvers: [
|
|
ElementPlusResolver(),
|
|
],
|
|
})
|
|
}
|