mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
29 lines
574 B
TypeScript
29 lines
574 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import Vue from '@vitejs/plugin-vue'
|
|
import VueJsx from '@vitejs/plugin-vue-jsx'
|
|
import VueMacros from 'unplugin-vue-macros/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
VueMacros({
|
|
setupComponent: false,
|
|
setupSFC: false,
|
|
plugins: {
|
|
vue: Vue(),
|
|
vueJsx: VueJsx(),
|
|
},
|
|
}),
|
|
],
|
|
optimizeDeps: {
|
|
disabled: true,
|
|
},
|
|
test: {
|
|
clearMocks: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
transformMode: {
|
|
web: [/\.[jt]sx$/],
|
|
},
|
|
},
|
|
})
|