Packages

vite

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

Your version

6.3.0

16 Apr 2025Where it was published

6.4.6 is the newest release of 6.x.

Summary· from the note as AI read it

Security fixUpgrade: this release fixes a security issue.

Before you upgrade

  • Stop using keepProcessEnv in DefaultEnvironmentOptions types

Security

  • Dev server fs.deny bypass via svg/relative paths fixed; upgrade
  • Dev server now rejects '#' in request-target, closing fs bypass
  • Transform middleware now enforces fs checks; upgrade dev servers
  • Raw query fs.deny bypass with query separators fixed; upgrade

New

  • env: add false option for envDir to disable env loading
  • types: make CustomPluginOptionsVite backward compatible
  • config: improve bad character warning
  • css: support preprocessor with lightningcss
  • implement hook filters

In short

1 removed4 security10 new2 faster17 fixed9 internal

  • Removed

    types: remove the keepProcessEnv from the DefaultEnvironmentOptions type

  • Security

    fs check with svg and relative paths

  • Security

    reject requests with # in request-target

  • Security

    fs check in transform middleware

  • Security

    fs raw query with query separators

Security

13 advisories affect 6.3.0; 6.4.4 fixes them

8 more

Release note

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

Features

  • env: add false option for envDir to disable env loading

  • types: make CustomPluginOptionsVite backward compatible

  • config: improve bad character warning

  • css: support preprocessor with lightningcss

  • experimental: add fetchable environment interface

  • Implement hook filters

  • types: expose CustomPluginOptionsVite type

  • types: make ImportMetaEnv strictly available

  • types: type hints for hmr events

  • Warn if define['process.env'] contains path key with a value

Bug Fixes

  • hmr: avoid infinite loop happening with hot.invalidate in circular deps

  • preview: use host url to open browser

  • addWatchFile doesn't work if base is specified (fixes #19792)

  • Correct the behavior when multiple transform filter options are specified

  • css: remove empty chunk imports correctly when chunk file name contained special characters

  • dev: make query selector regexes more inclusive (fix #19213)

  • Fs check with svg and relative paths

  • hmr: run HMR handler sequentially

  • Keep entry asset files imported by other files

  • module-runner: allow already resolved id as entry

  • Reject requests with # in request-target

  • types: remove the keepProcessEnv from the DefaultEnvironmentOptions type

  • Unbundle fdir to fix commonjsOptions.dynamicRequireTargets

  • Align plugin hook filter behavior with pluginutils

  • Fs check in transform middleware

  • hmr: throw non-standard error info causes logical error

  • Add back .mts to default resolve.extensions

  • css: parse image-set without space after comma correctly

  • css: scoped css order with non-scoped css

  • deps: update all non-major dependencies

  • Fs raw query with query separators

  • optimizer: fix incorrect picomatch usage in filter()

  • ssr: hoist export to handle cyclic import better

Performance Improvements

  • css: avoid constructing renderedModules

  • Only bundle node version debug

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.