mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
de0ee53cf0
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
21 lines
562 B
TypeScript
21 lines
562 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: {
|
|
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.js'],
|
|
transformMode: {
|
|
web: [/\.[jt]sx$/],
|
|
},
|
|
},
|
|
})
|