vite.config.ts
Language TypeScript779 B26 lines
import react from '@vitejs/plugin-react'import { fileURLToPath } from 'node:url'import { defineConfig } from 'vitest/config'// Two pages: the main window and the small quick-prompt window.export default defineConfig({plugins: [react()],clearScreen: false,server: { port: 1420, strictPort: true },build: {target: 'safari15',// The syntax highlighter is most of it; parsed once, from disk, at startup.chunkSizeWarningLimit: 700,rollupOptions: {input: {main: fileURLToPath(new URL('index.html', import.meta.url)),quick: fileURLToPath(new URL('quick.html', import.meta.url)),},},},test: {environment: 'jsdom',include: ['src/**/*.test.{ts,tsx}'],setupFiles: ['src/test-setup.ts'],},})