Files
solidjs-templates/js-vitest/vite.config.js
T
Alexandre Mouton-Brady ed0772c518 ⬆️ update dependencies to latest
2022-07-14 11:56:12 +02:00

33 lines
695 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',
// solid needs to be inline to work around
// a resolution issue in vitest:
deps: {
inline: [/solid-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'],
},
});