import { defineConfig } from 'vite-plus'; import react from '@vitejs/plugin-react'; // Vite config for the multi-sheet client. Builds to `dist/` with esnext target // (no legacy polyfills — we ship for evergreen browsers, matching the worker's // modern Cloudflare runtime). CSS Modules are on by default for *.module.css. // // `base: '/multi/'` — the worker mounts this bundle under `/multi/` via // `scripts/build-assets.ts` but serves the index.html at `/=:room` (via // `buildRoomEntry`'s `/multi/index.html` path). Without a base prefix, the // emitted `