mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
vite preview checks the case of every requested file on case-insensitive file systems (Windows, macOS) with a synchronous readdir of its parent directory. The fixture build has about 3100 files in dist/_assets, so each of the roughly 150 asset requests per page load blocks the one server that every worker shares. That matches the CI traces, where Windows asset waits and first navigations grow with the number of tests running. e2e/utils/serve.ts serves dist with Bun instead and keeps vite preview's routing rules: files resolve only inside dist, a malformed escape is a 404, and index.html is the fallback only for GET or HEAD requests whose Accept is missing, empty, text/html or */*, never for /favicon.ico. A missing script fetched as JavaScript or an API request asking for JSON still gets a 404. Bun fails on a busy port like --strictPort did, and reuseExistingServer and the dev-mode command are unchanged. The performance configs keep vite preview so their baselines stay comparable. |
||
|---|---|---|
| .. | ||
| visual-stability | ||
| app-direction.fixture.tsx | ||
| app-direction.html | ||
| app.ts | ||
| command-palette.ts | ||
| direction.ts | ||
| errors.ts | ||
| markdown-sessions.ts | ||
| mock-api.ts | ||
| mock-server.ts | ||
| prompt-motion.ts | ||
| serve.ts | ||
| session-fixture.ts | ||
| settings-wsl.fixture.tsx | ||
| settings-wsl.html | ||
| sse-transport.ts | ||
| timeline.ts | ||
| visual-stability.ts | ||
| waits.ts | ||
| windows-menu.fixture.tsx | ||
| windows-menu.html | ||
| workspace.ts | ||