Packages

vite

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

Your version

6.1.0

5 Feb 2025Where it was published

6.4.6 is the newest release of 6.x.

Summary· from the note as AI read it

To checkNothing breaks, but check what is deprecated or unsure.

Deprecated

  • Stop using the vite optimize command; it will be removed

New

  • show hosts in cert in CLI
  • support for env var for defining allowed hosts
  • use native runtime to import the config
  • print port in the logged error message after failed WS connection with EADDRINUSE
  • add support for .jxl

In short

1 deprecated16 new1 faster22 fixed7 internal

  • Deprecated

    deprecate vite optimize command

Security

17 advisories affect 6.1.0; 6.4.4 fixes them

12 more

Release note

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

Features

  • Show hosts in cert in CLI

  • Support for env var for defining allowed hosts

  • Use native runtime to import the config

  • Print port in the logged error message after failed WS connection with EADDRINUSE

  • Add support for .jxl

  • Add the builtins environment resolve

  • Call Logger for plugin logs in build

  • css: add friendly errors for IE hacks that are not supported by lightningcss

  • Export defaultAllowedOrigins for user-land config and 3rd party plugins

  • Expose createServerModuleRunnerTransport

  • optimizer: support bun text lockfile

  • reporter: add wasm to the compressible assets regex

  • Support async for proxy.bypass

  • Support log related functions in dev

  • Use module runner to import the config

  • worker: support dynamic worker option fields

Bug Fixes

  • Avoid builtStart during vite optimize

  • build: fix stale build manifest on watch rebuild

  • Allow expanding env vars in reverse order

  • Avoid packageJson without name in resolveLibCssFilename

  • html: fix css disorder when building multiple entry html

  • css: less [@plugin](https://github.com/plugin) imports of JS files treated as CSS and rebased (fix #19268)

  • deps: update all non-major dependencies

  • Don't call buildStart hooks for vite optimize

  • Don't call next middleware if user sent response in proxy.bypass

  • resolve: preserve hash/search of file url

  • resolve: warn if node-like builtin was imported when resolve.builtin is empty

  • Respect top-level server.preTransformRequests

  • ssr: fix transform error due to export all id scope

  • ssr: pretty print plugin error in ssrLoadModule

  • Use nodeLikeBuiltins for ssr.target: 'webworker' without noExternal: true

  • Change ResolvedConfig type to interface to allow extending it

  • Correctly resolve hmr dep ids and fallback to url

  • deps: update all non-major dependencies

  • hmr: register inlined assets as a dependency of CSS file

  • Make --force work for all environments

  • resolve: support resolving TS files by JS extension specifiers in JS files

  • ssr: combine empty source mappings

  • Use loc.file from rollup errors if available

  • utils: clone RegExp values with new RegExp instead of structuredClone (fix #19245, fix #18875)

Performance Improvements

  • css: only run postcss when needed

Code Refactoring

  • Deprecated

    Deprecate vite optimize command

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.