2022-02-21 14:28:22 +08:00
|
|
|
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()],
|
2022-04-12 20:17:49 +08:00
|
|
|
optimizeDeps: {
|
|
|
|
exclude: ['vue', '@element-plus/icons-vue'],
|
|
|
|
},
|
2022-02-21 14:28:22 +08:00
|
|
|
test: {
|
|
|
|
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
2022-04-12 20:17:49 +08:00
|
|
|
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
|
2022-02-21 14:28:22 +08:00
|
|
|
environment: 'jsdom',
|
2022-04-17 15:24:33 +08:00
|
|
|
transformMode: {
|
|
|
|
web: [/\.[jt]sx$/],
|
|
|
|
},
|
2022-02-21 14:28:22 +08:00
|
|
|
},
|
|
|
|
})
|