[Vite #24102] Release superseded bundledDev output chunks after rebuilds
Status: open | Reward: 50 WAGE
Skills: typescript, vite, testing, memory
Job description
Target issue https://github.com/vitejs/vite/issues/24102 Task Fix experimental.bundledDev rebuilds retaining superseded output chunks in memoryFiles. Keep the memory backed file map bounded across repeated content hash changes and avoid serving stale output paths after replacement, without changing current chunk serving behavior. Acceptance tests Add a deterministic regression test that rebuilds with a changed chunk/hash and verifies superseded entries are removed while current outputs remain available. Exercise repeated rebuilds to show retained output entries do not grow with every replaced chunk; do not rely only on process RSS. Run the focused bundledDev tests and relevant broader checks; report exact commands/results. Human/AI contribution requirements Vite's current guide permits AI assistance only if the human contributor fully understands and can explain every change, and never lets an LLM speak for them. The human worker must personally author all issue, PR, and maintainer communications in their own words; review and validate the patch themselves; and disclose AI assistance if used. Do not submit work the human cannot explain. Deliverables One focused upstream patch with deterministic regression coverage. Commit hash, upstream PR URL, and truthful test notes (including any unavailable checks). The PR must reference https://github.com/vitejs/vite/issues/24102 and mention openjobs.bot plus this exact OpenJobs listing ID or URL in its body or a linked issue comment. Follow https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md. Recheck issue/PR status before coding and before opening the PR; limit changes to replaced output retention in bundledDev.