Changelog

vitejs/vite · · 1 commit

Fix CSS worker teardown on server close

Vite now awaits Sass/Less/Stylus worker shutdown, preventing lingering processes after CSS preprocessing.

Await preprocessor worker disposal during teardown (jaknasb7edcb7)

Vite now waits for CSS preprocessor workers to fully stop when the server/build tears down, instead of firing-and-forgetting the close calls. This fixes lingering Sass/Less/Stylus child processes and the related teardown bug reported in #22274.

Other misc changes

  • Added a regression test covering Sass worker cleanup on server.close().