1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00
elk/vitest.config.ts

32 lines
575 B
TypeScript
Raw Normal View History

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