auto-import.js 382 B

1234567891011121314151617
  1. import autoImport from 'unplugin-auto-import/vite'
  2. import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
  3. export default function createAutoImport() {
  4. return autoImport({
  5. imports: [
  6. 'vue',
  7. 'vue-router',
  8. 'pinia'
  9. ],
  10. resolvers: [ElementPlusResolver()],
  11. dirs: [
  12. 'src/auto-import'
  13. ],
  14. dts: false
  15. })
  16. }