/// import { defineConfig } from 'vite'; export default defineConfig({ build: { rollupOptions: { output: { // Three.js is most of the bundle and changes far less often than the // app, so give it its own long-lived chunk. manualChunks: { three: ['three'] }, }, }, }, test: { // The unit suite covers pure physics and the audio graph, neither of which // needs a DOM. Browser behaviour is covered by scripts/e2e.mjs against real // Chrome, where a real WebGL context and a real AudioContext exist. environment: 'node', globals: true, include: ['test/**/*.test.ts'], }, });