2022-06-13 23:06:41 +08:00
|
|
|
import { defineConfig } from 'vitest/config'
|
2022-02-21 14:28:22 +08:00
|
|
|
import Vue from '@vitejs/plugin-vue'
|
|
|
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
|
|
import DefineOptions from 'unplugin-vue-define-options/vite'
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [Vue(), VueJsx(), DefineOptions()],
|
2022-04-12 20:17:49 +08:00
|
|
|
optimizeDeps: {
|
2022-04-19 12:46:57 +08:00
|
|
|
disabled: true,
|
2022-04-12 20:17:49 +08:00
|
|
|
},
|
2022-02-21 14:28:22 +08:00
|
|
|
test: {
|
2022-04-20 17:02:44 +08:00
|
|
|
clearMocks: true,
|
2022-02-21 14:28:22 +08:00
|
|
|
environment: 'jsdom',
|
2022-04-19 16:51:44 +08:00
|
|
|
setupFiles: ['./vitest.setup.ts'],
|
2022-04-17 15:24:33 +08:00
|
|
|
transformMode: {
|
|
|
|
web: [/\.[jt]sx$/],
|
|
|
|
},
|
2022-02-21 14:28:22 +08:00
|
|
|
},
|
|
|
|
})
|