mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
20 lines
552 B
TypeScript
20 lines
552 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: {
|
|
exclude: ['vue', '@element-plus/icons-vue'],
|
|
},
|
|
test: {
|
|
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
|
|
environment: 'jsdom',
|
|
transformMode: {
|
|
web: [/\.[jt]sx$/],
|
|
},
|
|
},
|
|
})
|