2022-11-25 11:25:56 +03:00
|
|
|
import { resolve } from 'path'
|
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
import Vue from '@vitejs/plugin-vue'
|
2022-11-25 11:56:14 +03:00
|
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
2022-11-25 11:25:56 +03:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'~/': `${resolve(__dirname)}/`,
|
|
|
|
},
|
|
|
|
},
|
2022-12-17 19:55:29 +03:00
|
|
|
define: {
|
|
|
|
'process.server': 'false',
|
|
|
|
'process.client': 'true',
|
|
|
|
},
|
2022-11-25 11:25:56 +03:00
|
|
|
plugins: [
|
|
|
|
Vue(),
|
2022-11-25 11:56:14 +03:00
|
|
|
AutoImport({
|
|
|
|
dts: false,
|
|
|
|
imports: [
|
|
|
|
'vue',
|
|
|
|
'@vueuse/core',
|
|
|
|
],
|
|
|
|
dirs: [
|
|
|
|
'composables',
|
|
|
|
],
|
|
|
|
}),
|
2022-11-25 11:25:56 +03:00
|
|
|
],
|
|
|
|
})
|