mirror of
https://github.com/xxxsf/vue3-h5-template.git
synced 2025-04-05 04:12:45 +08:00
22 lines
462 B
TypeScript
22 lines
462 B
TypeScript
/**
|
|
* @name AutoImportDeps
|
|
* @description 按需加载,自动引入
|
|
*/
|
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
|
|
export const AutoImportDeps = () => {
|
|
return AutoImport({
|
|
dts: 'types/auto-imports.d.ts',
|
|
imports: [
|
|
'vue',
|
|
'pinia',
|
|
'vue-router',
|
|
{
|
|
'@vueuse/core': [],
|
|
},
|
|
],
|
|
resolvers: [ElementPlusResolver()],
|
|
});
|
|
};
|