Vite 8.4 adds an allow list mode for dev server file serving
Vite 8.4 lets developers switch the dev server to an allow list that only serves files reachable from the app's entry points, a stricter guard against leaking files when the server is exposed. The team plans to make this the default in the next major version. The release also refetches CSS when a failed dynamic import is retried, supports subpath imports in CSS url(), stops duplicate dev servers for the same project and adds Wasm source phase imports.

