Changelog

vitejs/vite · · 6 commits

Optimizer bundle cleanup lands

Vite fixes Rolldown bundle lifecycle issues in optimizer and define transforms, plus docs clarify middleware mode and server typing.

Close Rolldown bundles after optimizer export analysis (teamleaderleo8fb7675)

Vite now ensures the temporary Rolldown bundle used while analyzing custom optimizeDeps.extensions is closed after generate(). This prevents leaked resources and makes optimizer-only closeBundle hooks run reliably.

Close the define-plugin bundler after generation (bteab4d66fe)

The define plugin test now closes its bundler in a finally block after generating output. This guards against resource leaks in the transform path and matches the lifecycle the optimizer fix is enforcing elsewhere.

Other misc changes

  • Docs: correct server.middlewareMode type and note WebSocket proxy server requirements (btea9c75eb1)
  • Docs: fix grammar/highlight-line tweaks in SSR and Vite 5.1 blog post (Chanjeong2c485d6, dogledogle0cba7fe)
  • Chore: fix TypeScript errors in a build test case (bteaa0cfcf7)