blog-admin/vite/plugins/auto-import.js
2023-12-10 13:02:30 +08:00

18 lines
437 B
JavaScript

import autoImport from 'unplugin-auto-import/vite'
//import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
export default function createAutoImport() {
return autoImport({
//resolvers: [ElementPlusResolver()],
imports: [
'vue',
'vue-router',
// {
// 'vuex': ['useStore']
// }
'pinia'
],
dts: false
})
}