vitest/examples/vue-jsx/vite.config.ts
Vladimir f1b5474aa2
feat: allow plugins to specify if they should be transformed (#469)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-01-07 23:25:32 +08:00

15 lines
305 B
TypeScript

import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Jsx from '@vitejs/plugin-vue-jsx'
export default defineConfig({
plugins: [Vue(), Jsx()],
test: {
global: true,
environment: 'happy-dom',
transformMode: {
web: [/.[tj]sx$/],
},
},
})