Skip to content

vite 7.0.0

7.0.0 (2025-06-24)

Vite 7 is out!

Today, we're excited to announce the release of the next Vite major:

⚠ BREAKING CHANGES

  • ssr: don't access Object variable in ssr transformed code (#19996)
  • remove experimental.skipSsrTransform option (#20038)
  • remove HotBroadcaster (#19988)
  • css: always use sass compiler API (#19978)
  • bump build.target and name it baseline-widely-available (#20007)
  • bump required node version to 20.19+, 22.12+ and remove cjs build (#20032)
  • css: remove sass legacy API support (#19977)
  • remove deprecated HotBroadcaster related types (#19987)
  • remove deprecated no-op type only properties (#19985)
  • remove node 18 support (#19972)
  • remove deprecated hook-level enforce/transform from transformIndexHtml hook (#19349)
  • remove deprecated splitVendorChunkPlugin (#19255)

Features

Bug Fixes

  • deps: update all non-major dependencies (#20271) (6b64d63)
  • keep import.meta.url in bundled Vite (#20235) (3bf3a8a)
  • module-runner: export ssrExportNameKey (#20266) (ac302a7)
  • module-runner: expose normalizeModuleId (#20277) (9b98dcb)
  • deps: update all non-major dependencies (#20181) (d91d4f7)
  • deps: update all non-major dependencies (#20212) (a80339b)
  • align dynamic import detection (#20115) (1ea2222)
  • applyToEnvironment after configResolved (#20170) (a330b80)
  • deps: update all non-major dependencies (#20141) (89ca65b)
  • handle dynamic import with .then(m => m.a) (#20117) (7b7410a)
  • hmr: use monotonicDateNow for timestamp (#20158) (8d26785)
  • optimizer: align relative build.rollupOptions.input resolution with rollup (#20080) (9759c29)
  • ssr: don't access Object variable in ssr transformed code (#19996) (fceff60)
  • types: prefer sass-embedded types over sass types for preprocessorOptions.sass (fix #20150) (#20166) (7db56be)
  • virtual svg module (#20144) (7dfcb31)
  • client: render the last part of the stacktrace (#20039) (c7c1743)
  • cli: make cleanGlobalCLIOptions() clean --force (#19999) (d4a171a)
  • css: remove alias exclude logic from rebaseUrl (#20100) (44c6d01)
  • css: sass rebase url in relative imported modules (#20067) (261fad9)
  • css: should not wrap with double quote when the url rebase feature bailed out (#20068) (a33d0c7)
  • deps: update all non-major dependencies (#19953) (ac8e1fb)
  • deps: update all non-major dependencies (#20061) (7b58856)
  • importing an optional peer dep should throw an runtime error (#20029) (d0221cd)
  • merge environments.*.resolve.noExternal properly (#20077) (daf4a25)
  • merge server.allowedHosts: true correctly (#20138) (2ade756)
  • optimizer: non object module.exports for Node builtin modules in CJS external facade (#20048) (00ac6e4)
  • optimizer: show error when computeEntries failed (#20079) (b742b46)
  • treat all optimizeDeps.entries values as globs (#20045) (1422395)
  • types: expose additional PluginContext types (#20129) (b6df9aa)

Performance Improvements

Documentation

Miscellaneous Chores

Code Refactoring

Tests

Continuous Integration

Beta Changelogs