mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
20 lines
458 B
TypeScript
20 lines
458 B
TypeScript
import { defineConfig } from 'vite'
|
|
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()],
|
|
optimizeDeps: {
|
|
disabled: true,
|
|
},
|
|
test: {
|
|
clearMocks: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
transformMode: {
|
|
web: [/\.[jt]sx$/],
|
|
},
|
|
},
|
|
})
|