vite
8.3.8 · 11 Nov 2026MIT286.5M / weekRepositoryHomepagenpmAtom feed
8.3.8 is the newest release of 8.x.
Summary· from the note as AI read it
Migration neededRead before upgrading: 4 changes to make.
Before you upgrade
- Check the dev server still serves needed files now in server.fs.deny
- Upgrade @vitejs/devtools to the new required peer version
- Rename server.hmr options to server.ws
- Check typecheck with stricter import.meta.glob query typings
Deprecated
- Move off the deprecated envFile option
New
- update rolldown to 1.1.2
import.meta.globsupportcaseSensitiveoption- add warning to discourage Vite with yarn pnp
- build: chunk importmap
- css: support lightningcss plugin dependency
In short
4 breaking1 deprecated11 new13 fixed14 internal
- Breaking
extend
server.fs.denylist with common files - Breaking
deps: bump @vitejs/devtools peer dependency version
- Breaking
rename
server.hmroptions toserver.wsoptions - Breaking
types: add more precise typing for known
querytypes to match knownastypes - Deprecated
warn on deprecated envFile
Security
5 advisories affect 8.1.0; 8.3.3 fixes them
- Highlaunch-editor: `fs.existsSync()` existence check can be bypassed on WindowsGHSA-587h-7wmj-h5pm · 20 Oct 2026Fixed in 8.3.3
- ModerateVite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machineGHSA-rq7h-c2jc-7f22 · 21 Oct 2026Fixed in 8.3.3
- Moderatelaunch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editorsGHSA-r825-w8mm-5pxw · 20 Oct 2026Fixed in 8.3.3
- Moderatelaunch-editor: escapeCmdArgs() omits % escaping on WindowsGHSA-698v-4r3x-3vcv · 20 Oct 2026Fixed in 8.3.3
- LowVite: Cross origin script execution through Vite custom middlewareGHSA-9jrq-w75r-8gcw · 21 Oct 2026Fixed in 8.3.3
Release note
The section about vite of a note shared by several packages.
Features
Extend
server.fs.denylist with common filesUse
~for Rolldownimport.meta.globsupportcaseSensitiveoptionAdd warning to discourage Vite with yarn pnp
build: chunk importmap
css: support lightningcss plugin dependency
deps: bump @vitejs/devtools peer dependency version
html: add
html.additionalAssetSourcesoptionIntegrate with Vite Task for zero-config build caching
Rename
server.hmroptions toserver.wsoptionsserver: support multiple hosts in __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS
Track dependencies when loading config with native
types: add more precise typing for known
querytypes to match knownastypeswasm: direct .wasm imports (WASM ESM Integration)
Bug Fixes
bundled-dev: errors should be kept when incremental build fails
Cache falsy values in perEnvironmentState
glob: respect caseSensitive option in hmr matcher
html: omit nonce on import map when cspNonce is unset
optimizer: skip null-valued exports in expandGlobIds glob resolution
Resolved build options should be kept as a getter
server: handle malformed URI in memory files middleware
Use literal envPrefix queries for Vite Task
- Deprecated
Warn on deprecated envFile
Apply correct fs restrictions for pnpm gvs
css: support external CSS with lightningcss
deps: update all non-major dependencies
deps: update all non-major dependencies
html: insert import map before modulepreload that is not self-close tag
optimizer: preserve sourcemaps for transformed optimized deps with follow-up transforms
Use node_modules/.vite as cacheDir when node_modules exists
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.