Close Rolldown bundles after optimizer export analysis (
8fb7675)
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 (
b4d66fe)
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.

