Packages

vite

8.3.8 · 11 Nov 2026MIT286.5M / weekRepositoryHomepagenpmAtom feed

Your version

8.1.0

23 Jun 2026Where it was published

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.glob support caseSensitive option
  • 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.deny list with common files

  • Breaking

    deps: bump @vitejs/devtools peer dependency version

  • Breaking

    rename server.hmr options to server.ws options

  • Breaking

    types: add more precise typing for known query types to match known as types

  • Deprecated

    warn on deprecated envFile

Security

Release note

The section about vite of a note shared by several packages.

Features

  • Extend server.fs.deny list with common files

  • Use ~ for Rolldown

  • import.meta.glob support caseSensitive option

  • Add 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.additionalAssetSources option

  • Integrate with Vite Task for zero-config build caching

  • Rename server.hmr options to server.ws options

  • server: support multiple hosts in __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS

  • Track dependencies when loading config with native

  • types: add more precise typing for known query types to match known as types

  • wasm: 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.