Files
waveform-analysis/vite.config.ts
李启源 3c1c29fa56
All checks were successful
Package component / package (push) Successful in 2m23s
fix(demo): avoid circular vendor imports
2026-07-21 14:26:23 +08:00

39 lines
744 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vitest/config'
export default defineConfig({
base: process.env.DEMO_BASE_PATH ?? '/',
plugins: [vue()],
server: {
host: '0.0.0.0',
},
preview: {
host: '0.0.0.0',
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary'],
thresholds: {
lines: 80,
statements: 80,
functions: 80,
branches: 75,
},
},
},
build: {
outDir: 'dist-demo',
},
})