Files
solidjs-templates/js-vitest/vite.config.js
T
2022-08-27 11:26:19 +02:00

28 lines
564 B
JavaScript

import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
transformMode: {
web: [/\.jsx?$/],
},
setupFiles: './setupVitest.js',
// if you have few tests, try commenting one
// or both out to improve performance:
// threads: false,
// isolate: false,
},
plugins: [solidPlugin()],
server: {
port: 3000,
},
build: {
target: 'esnext',
},
resolve: {
conditions: ['development', 'browser'],
},
});