Changelog

vitejs/vite · · 11 commits

Plugin errors get sharper and safer

Vite improves plugin error tagging, handles environment cleanup on init failures, and tightens a few docs and dependency updates.

Plugin hook errors now carry the right plugin name (materwelonDhruve1e1ac8)

Vite now re-tags hook errors based on the current plugin name and re-wraps handlers when a hook implementation changes. This makes plugin error reporting stay accurate after plugin renames or runtime hook replacement, which is especially useful when debugging evolving plugin code.

Server shutdown now closes partially initialized dev environments (onmax826dcb8)

If server startup fails after a DevEnvironment has been created, Vite now closes the environment’s transport instead of leaving it hanging. That reduces resource leaks and makes startup failure handling more robust.

Plugin hook errors preserve the original thrown message (materwelonDhruv24eb35a)

Error messages from plugin hooks now stay as originally thrown instead of being rewritten with plugin prefixes. This keeps stack/error output cleaner while preserving the plugin and hook metadata for diagnostics.

Other misc changes

  • Dependency updates, including Vue 3.5 support in playgrounds and non-major bumps across the repo
  • Switched linting setup to tsrs for type-aware linting
  • Dependency bump for body-parser
  • Docs clarifications for <base> usage and stale esbuild references
  • Minor typo fix in CSS chunk map naming