Skip to content

Latest commit

 

History

History
1786 lines (1266 loc) · 186 KB

File metadata and controls

1786 lines (1266 loc) · 186 KB

8.0.0-beta.13 (2026-02-05)

Features

Bug Fixes

Miscellaneous Chores

Code Refactoring

Tests

8.0.0-beta.12 (2026-02-03)

Features

  • manifest: add assets field for standalone CSS entry points (#21015) (f289b9b)

Bug Fixes

  • avoid registering customization hook for import meta resolver multiple times (#21518) (8bb3203)
  • config: avoid watching rolldown runtime virtual module (#21545) (d18b139)
  • deps: update all non-major dependencies (#21540) (9ebaeaa)
  • populate originalFileNames when resolving CSS asset paths (#21542) (8b47ff7)

Miscellaneous Chores

  • deps: update dependency rolldown-plugin-dts to ^0.21.8 (#21539) (33881cb)

8.0.0-beta.11 (2026-01-29)

Features

Bug Fixes

  • deps: update all non-major dependencies (#21488) (2b32ca2)
  • disable tsconfig option when loading config (#21517) (5025c35)
  • optimizer: map relative new URL paths to correct relative file location (#21434) (ca96cbc)

Documentation

Miscellaneous Chores

Code Refactoring

  • enable some native plugins even with enable native plugin false (#21511) (b40292c)
  • remove experimental.enableNativePlugin: 'resolver' (#21510) (f9d9213)
  • use import.meta.dirname everywhere (#21509) (7becf5f)

8.0.0-beta.10 (2026-01-24)

Bug Fixes

  • avoid using deprecated output.inlineDynamicImport option (#21464) (471ce62)
  • use separate hook object for each environment (#21472) (66347f6)

Documentation

8.0.0-beta.9 (2026-01-22)

Features

Bug Fixes

  • deps: update all non-major dependencies (#21440) (1835995)
  • dev: avoid event emitter leak caused by server.listen callback (#21451) (602d786)
  • lazy hook filter should work (#21443) (bc0c207)
  • optimizer: skip rolldownCjsExternalPlugin for platform: neutral (#21452) (d2fc4be)

Miscellaneous Chores

Code Refactoring

  • optimizer: simplify rolldownCjsExternalPlugin (#21450) (ebda8fd)

8.0.0-beta.8 (2026-01-15)

⚠ BREAKING CHANGES

  • remove import.meta.hot.accept resolution fallback (#21382)

Features

Bug Fixes

Code Refactoring

  • remove import.meta.hot.accept resolution fallback (#21382) (71d0797)

8.0.0-beta.7 (2026-01-08)

Features

Bug Fixes

8.0.0-beta.6 (2026-01-07)

Features

Bug Fixes

  • deps: update all non-major dependencies (#21321) (9bc7c2e)
  • import-analysis: avoid cjs interop for built browser external module (#21333) (dc5a2fb)

Miscellaneous Chores

8.0.0-beta.5 (2025-12-25)

Features

Bug Fixes

  • worker: handle new Worker(..., new URL(import.meta.url)) with trailing comma (#21325) (4a47241)

Code Refactoring

8.0.0-beta.4 (2025-12-22)

Features

Bug Fixes

  • detect import.meta.resolve when formatted across multiple lines (#21312) (130e718)

8.0.0-beta.3 (2025-12-18)

Features

  • introduce v2 native plugins and enable it by default (#21268) (42f2ab3)
  • ssr: avoid errors when rewriting already rewritten stacktrace (#21269) (98d9a33)
  • update rolldown to 1.0.0-beta.55 (#21300) (2c8db85)

Bug Fixes

  • allow no-cors requests for non-script tag requests (#21299) (ef3d596)
  • deps: update all non-major dependencies (#21285) (4635b2e)
  • unreachable error when building with experimental.bundledDev is enabled (#21296) (e81c183)

8.0.0-beta.2 (2025-12-12)

Features

Bug Fixes

Documentation

8.0.0-beta.1 (2025-12-08)

Features

  • add a warning that is output when a plugin sets esbuild related options (#21218) (200646b)
  • highly experimental full bundle mode (#21235) (83d8c99)
  • print esbuild options when both esbuild and oxc options are set (#21216) (08ae87b)

Bug Fixes

Miscellaneous Chores

8.0.0-beta.0 (2025-12-03)

⚠ BREAKING CHANGES

  • update default browser target (#21193)
  • the epic rolldown-vite merge (#21189)

Features

Rolldown-Vite changelogs

See rolldown-vite changelog

7.3.1 (2026-01-07)

Features

  • add ignoreOutdatedRequests option to optimizeDeps (#21364) (9d39d37)

7.3.0 (2025-12-15)

Features

  • deps: update esbuild from ^0.25.0 to ^0.27.0 (#21183) (cff26ec)

7.2.7 (2025-12-08)

Bug Fixes

7.2.6 (2025-12-01)

7.2.5 (2025-12-01)

Bug Fixes

Performance Improvements

Documentation

  • clarify manifest.json imports field is JS chunks only (#21136) (46d3077)

Miscellaneous Chores

7.2.4 (2025-11-20)

Bug Fixes

  • revert "perf(deps): replace debug with obug (#21107)" (2d66b7b)

7.2.3 (2025-11-20)

Bug Fixes

  • allow multiple bindCLIShortcuts calls with shortcut merging (#21103) (5909efd)
  • deps: update all non-major dependencies (#21096) (6a34ac3)
  • deps: update all non-major dependencies (#21128) (4f8171e)

Performance Improvements

Miscellaneous Chores

  • deps: update dependency @rollup/plugin-commonjs to v29 (#21099) (02ceaec)
  • deps: update rolldown-related dependencies (#21095) (39a0a15)
  • deps: update rolldown-related dependencies (#21127) (5029720)

7.2.2 (2025-11-07)

Bug Fixes

7.2.1 (2025-11-06)

Bug Fixes

Code Refactoring

  • build: rename indexOfMatchInSlice to findPreloadMarker (#21054) (f83264f)

7.2.0 (2025-11-05)

Bug Fixes

  • css: fallback to sass when sass-embedded platform binary is missing (#21002) (b1fd616)
  • module-runner: make getBuiltins response JSON serializable (#21029) (ad5b3bf)
  • types: add undefined to optional properties for exactOptionalProperties type compatibility (#21040) (2833c55)

Miscellaneous Chores

7.2.0-beta.1 (2025-10-29)

Bug Fixes

  • increase stream reset rate limit for HTTP2 (#21024) (4f44f22)
  • optimizer: externalize virtual modules for html like files (#21001) (e5af352)

Documentation

  • clarify the values are escaped automatically (#21017) (246df13)

Code Refactoring

7.2.0-beta.0 (2025-10-28)

Features

  • add import.meta.resolve support for ESM config (bundle config loader) (#20962) (f86789a)
  • add perEnvironmentWatchChangeDuringDev (#20996) (a5e98e6)
  • add vite client connect events (#20978) (543d87c)
  • build: emit license (#18546) (b42c3fb)
  • dev: support HTTP2 even if proxy feature is used (#20869) (fc21af7)
  • lib: enable minification but keep pure annotations for es output with terser (#20522) (df997d0)
  • optimizer: add rush lockfile support (#20833) (718ca2d)
  • utils: support multiple certificates in resolveServerUrls (#20707) (24513e5)

Bug Fixes

  • build: ensure amd bundles request require to be injected (#20861) (bb85bd7)
  • build: replace names in the manifest with unmangled name for CSS assets (#20585) (4abf056)
  • deps: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins#1909 (#20988) (856e683)
  • deps: update all non-major dependencies (#21008) (185641e)
  • disable optional peer dep handling for nodeResolveWithVite (#20989) (ca18b23)
  • handle query parameters for /@vite/* modules (#20998) (6843a6a)
  • module-runner: resolve resolvedSources correctly (#20959) (c4f6039)
  • resolve: match resolved subpath import path's relative prefix with regex (fix #20972) (#20973) (ff2d83e)
  • update build log to include environment name (#20987) (77c25c1)
  • use esm entrypoint for css preprocessors and terser (#20918) (1460824)

Performance Improvements

  • module-runner: add client-side builtin module check (#20924) (ccffead)
  • module-runner: use module.registerHooks when available (#20980) (9c8a780)
  • run dev.createEnvironment and build.createEnvironment concurrently (#20699) (d636220)
  • worker: rebuild only when affected (#20559) (5cd3890)

Miscellaneous Chores

Code Refactoring

Build System

7.1.11 (2025-10-20)

Bug Fixes

  • dev: trim trailing slash before server.fs.deny check (#20968) (f479cc5)

Miscellaneous Chores

Code Refactoring

  • use subpath imports for types module reference (#20921) (d0094af)

Build System

7.1.10 (2025-10-14)

Bug Fixes

  • css: avoid duplicate style for server rendered stylesheet link and client inline style during dev (#20767) (3a92bc7)
  • css: respect emitAssets when cssCodeSplit=false (#20883) (d3e7eee)
  • deps: update all non-major dependencies (879de86)
  • deps: update all non-major dependencies (#20894) (3213f90)
  • dev: allow aliases starting with // (#20760) (b95fa2a)
  • dev: remove timestamp query consistently (#20887) (6537d15)
  • esbuild: inject esbuild helpers correctly for esbuild 0.25.9+ (#20906) (446eb38)
  • normalize path before calling fileToBuiltUrl (#20898) (73b6d24)
  • preserve original sourcemap file field when combining sourcemaps (#20926) (c714776)

Documentation

Miscellaneous Chores

7.1.9 (2025-10-03)

Reverts

7.1.8 (2025-10-02)

Bug Fixes

Documentation

Miscellaneous Chores

7.1.7 (2025-09-22)

Bug Fixes

  • build: fix ssr environment emitAssets: true when sharedConfigBuild: true (#20787) (4c4583c)
  • client: use CSP nonce when rendering error overlay (#20791) (9bc9d12)
  • deps: update all non-major dependencies (#20811) (9f2247c)
  • glob: handle glob imports from folders starting with dot (#20800) (105abe8)
  • hmr: trigger prune event when import is removed from non hmr module (#20768) (9f32b1d)
  • hmr: wait for import.meta.hot.prune callbacks to complete before running other HMRs (#20698) (98a3484)

7.1.6 (2025-09-18)

Bug Fixes

  • deps: update all non-major dependencies (#20773) (88af2ae)
  • esbuild: inject esbuild helper functions with minified $ variables correctly (#20761) (7e8e004)
  • fallback terser to main thread when nameCache is provided (#20750) (a679a64)
  • types: strict env typings fail when skipLibCheck is false (#20755) (cc54e29)

Miscellaneous Chores

7.1.5 (2025-09-08)

Bug Fixes

7.1.4 (2025-09-01)

Bug Fixes

Miscellaneous Chores

  • remove unused constants entry from rolldown.config.ts (#20710) (537fcf9)

Code Refactoring

  • remove unnecessary minify parameter from finalizeCss (#20701) (8099582)

7.1.3 (2025-08-19)

Features

  • cli: add Node.js version warning for unsupported versions (#20638) (a1be1bf)
  • generate code frame for parse errors thrown by terser (#20642) (a9ba017)
  • support long lines in generateCodeFrame (#20640) (1559577)

Bug Fixes

  • deps: update all non-major dependencies (#20634) (4851cab)
  • optimizer: incorrect incompatible error (#20439) (446fe83)
  • support multiline new URL(..., import.meta.url) expressions (#20644) (9ccf142)

Performance Improvements

Miscellaneous Chores

Code Refactoring

Tests

7.1.2 (2025-08-12)

Bug Fixes

  • client: add [vite] prefixes to debug logs (#20595) (7cdef61)
  • config: make debugger work with bundle loader (#20573) (c583927)
  • deps: update all non-major dependencies (#20587) (20d4817)
  • don't consider ids with npm: prefix as a built-in module (#20558) (ab33803)
  • hmr: watch non-inlined assets referenced by CSS (#20581) (b7d494b)
  • module-runner: prevent crash when sourceMappingURL pattern appears in string literals (#20554) (2770478)

Miscellaneous Chores

  • deps: migrate to @jridgewell/remapping from @ampproject/remapping (#20577) (0a6048a)
  • deps: update rolldown-related dependencies (#20586) (77632c5)

7.1.1 (2025-08-08)

Bug Fixes

Miscellaneous Chores

7.1.0 (2025-08-07)

Features

  • support files with more than 1000 lines by generateCodeFrame (#20508) (e7d0b2a)
  • add import.meta.main support in config (bundle config loader) (#20516) (5d3e3c2)
  • optimizer: improve dependency optimization error messages with esbuild formatMessages (#20525) (d17cfed)
  • ssr: add import.meta.main support for Node.js module runner (#20517) (794a8f2)
  • add future: 'warn' (#20473) (e6aaf17)
  • add removeServerPluginContainer future deprecation (#20437) (c1279e7)
  • add removeServerReloadModule future deprecation (#20436) (6970d17)
  • add server.warmupRequest to future deprecation (#20431) (8ad388a)
  • add ssrFixStacktrace / ssrRewriteStacktrace to removeSsrLoadModule future deprecation (#20435) (8c8f587)
  • client: ping from SharedWorker (#19057) (5c97c22)
  • dev: add this.fs support (#20301) (0fe3f2f)
  • export defaultExternalConditions (#20279) (344d302)
  • implement removePluginHookSsrArgument future deprecation (#20433) (95927d9)
  • implement removeServerHot future deprecation (#20434) (259f45d)
  • resolve server URLs before calling other listeners (#19981) (45f6443)
  • ssr: resolve externalized packages with resolve.externalConditions and add module-sync to default external condition (#20409) (c669c52)
  • ssr: support import.meta.resolve in module runner (#20260) (62835f7)

Bug Fixes

  • css: avoid warnings for image-set containing __VITE_ASSET__ (#20520) (f1a2635)
  • css: empty CSS entry points should generate CSS files, not JS files (#20518) (bac9f3e)
  • dev: denied request stalled when requested concurrently (#20503) (64a52e7)
  • manifest: initialize entryCssAssetFileNames as an empty Set (#20542) (6a46cda)
  • skip prepareOutDirPlugin in workers (#20556) (97d5111)
  • asset: only watch existing files for new URL(, import.meta.url) (#20507) (1b211fd)
  • client: keep ping on WS constructor error (#20512) (3676da5)
  • deps: update all non-major dependencies (#20537) (fc9a9d3)
  • don't resolve as relative for specifiers starting with a dot (#20528) (c5a10ec)
  • html: allow control character in input stream (#20483) (c12a4a7)
  • merge old and new noExternal: true correctly (#20502) (9ebe4a5)
  • deps: update all non-major dependencies (#20489) (f6aa04a)
  • dev: denied requests overly (#20410) (4be5270)
  • hmr: register css deps as type: asset (#20391) (7eac8dd)
  • optimizer: discover correct jsx runtime during scan (#20495) (10d48bb)
  • preview: set correct host for resolvedUrls (#20496) (62b3e0d)
  • worker: resolve WebKit compat with inline workers by deferring blob URL revocation (#20460) (8033e5b)

Performance Improvements

Miscellaneous Chores

Code Refactoring

Tests

Beta Changelogs

7.1.0-beta.1 (2025-08-05)

See 7.1.0-beta.1 changelog

7.1.0-beta.0 (2025-07-30)

See 7.1.0-beta.0 changelog

7.0.6 (2025-07-24)

Bug Fixes

  • deps: update all non-major dependencies (#20442) (e49f505)
  • dev: incorrect sourcemap when optimized CJS is imported (#20458) (ead2dec)
  • module-runner: normalize file:// on windows (#20449) (1c9cb49)
  • respond with correct headers and status code for HEAD requests (#20421) (23d04fc)

Miscellaneous Chores

Code Refactoring

7.0.5 (2025-07-17)

Bug Fixes

  • deps: update all non-major dependencies (#20406) (1a1cc8a)
  • remove special handling for Accept: text/html (#20376) (c9614b9)
  • watch assets referenced by new URL(, import.meta.url) (#20382) (6bc8bf6)

Miscellaneous Chores

  • deps: update dependency rolldown to ^1.0.0-beta.27 (#20405) (1165667)

Code Refactoring

  • use foo.endsWith("bar") instead of /bar$/.test(foo) (#20413) (862e192)

7.0.4 (2025-07-10)

Bug Fixes

  • allow resolving bare specifiers to relative paths for entries (#20379) (324669c)

Build System

7.0.3 (2025-07-08)

Bug Fixes

  • client: protect against window being defined but addEv undefined (#20359) (31d1467)
  • define: replace optional values (#20338) (9465ae1)
  • deps: update all non-major dependencies (#20366) (43ac73d)

Miscellaneous Chores

Code Refactoring

  • minor changes to reduce diff between normal Vite and rolldown-vite (#20354) (2e8050e)

7.0.2 (2025-07-04)

Bug Fixes

7.0.1 (2025-07-03)

Bug Fixes

Miscellaneous Chores

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

7.0.0-beta.2 (2025-06-17)

See 7.0.0-beta.2 changelog

7.0.0-beta.1 (2025-06-10)

See 7.0.0-beta.1 changelog

7.0.0-beta.0 (2025-06-02)

See 7.0.0-beta.0 changelog

6.3.5 (2025-05-05)

Bug Fixes

  • ssr: handle uninitialized export access as undefined (#19959) (fd38d07)

6.3.4 (2025-04-30)

Bug Fixes

  • check static serve file inside sirv (#19965) (c22c43d)
  • optimizer: return plain object when using require to import externals in optimized dependencies (#19940) (efc5eab)

Code Refactoring

6.3.3 (2025-04-24)

Bug Fixes

  • assets: ensure ?no-inline is not included in the asset url in the production environment (#19496) (16a73c0)
  • css: resolve relative imports in sass properly on Windows (#19920) (ffab442)
  • deps: update all non-major dependencies (#19899) (a4b500e)
  • ignore malformed uris in transform middleware (#19853) (e4d5201)
  • ssr: fix execution order of re-export (#19841) (ed29dee)
  • ssr: fix live binding of default export declaration and hoist exports getter (#19842) (80a91ff)

Performance Improvements

  • skip sourcemap generation for renderChunk hook of import-analysis-build plugin (#19921) (55cfd04)

Tests

  • ssr: test ssrTransform re-export deps and test stacktrace with first line (#19629) (9399cda)

6.3.2 (2025-04-18)

Features

Bug Fixes

  • css: respect css.lightningcss option in css minification process (#19879) (b5055e0)
  • deps: update all non-major dependencies (#19698) (bab4cb9)
  • match default asserts case insensitive (#19852) (cbdab1d)
  • open first url if host does not match any urls (#19886) (6abbdce)

6.3.1 (2025-04-17)

Bug Fixes

  • avoid using Promise.allSettled in preload function (#19805) (35c7f35)
  • backward compat for internal plugin transform calls (#19878) (a152b7c)

6.3.0 (2025-04-16)

Bug Fixes

  • hmr: avoid infinite loop happening with hot.invalidate in circular deps (#19870) (d4ee5e8)
  • preview: use host url to open browser (#19836) (5003434)

6.3.0-beta.2 (2025-04-11)

Bug Fixes

  • addWatchFile doesn't work if base is specified (fixes #19792) (#19794) (8bed1de)
  • correct the behavior when multiple transform filter options are specified (#19818) (7200dee)
  • css: remove empty chunk imports correctly when chunk file name contained special characters (#19814) (b125172)
  • dev: make query selector regexes more inclusive (fix #19213) (#19767) (f530a72)
  • fs check with svg and relative paths (#19782) (62d7e81)
  • hmr: run HMR handler sequentially (#19793) (380c10e)
  • keep entry asset files imported by other files (#19779) (2fa1495)
  • module-runner: allow already resolved id as entry (#19768) (e2e11b1)
  • reject requests with # in request-target (#19830) (175a839)
  • types: remove the keepProcessEnv from the DefaultEnvironmentOptions type (#19796) (36935b5)
  • unbundle fdir to fix commonjsOptions.dynamicRequireTargets (#19791) (71227be)

Performance Improvements

Documentation

  • vite: fix description of transformIndexHtml hook (#19799) (a0e1a04)

Miscellaneous Chores

Code Refactoring

Tests

6.3.0-beta.1 (2025-04-03)

Features

  • env: add false option for envDir to disable env loading (#19503) (bca89e1)
  • types: make CustomPluginOptionsVite backward compatible (#19760) (821edf1)

Bug Fixes

  • align plugin hook filter behavior with pluginutils (#19736) (0bbdd2c)
  • fs check in transform middleware (#19761) (5967313)
  • hmr: throw non-standard error info causes logical error (#19776) (6b648c7)

Performance Improvements

Miscellaneous Chores

6.3.0-beta.0 (2025-03-26)

Features

Bug Fixes

Miscellaneous Chores

Code Refactoring

6.2.2 (2025-03-14)

Features

Bug Fixes

  • await client buildStart on top level buildStart (#19624) (b31faab)
  • css: inline css correctly for double quote use strict (#19590) (d0aa833)
  • deps: update all non-major dependencies (#19613) (363d691)
  • indexHtml: ensure correct URL when querying module graph (#19601) (dc5395a)
  • preview: use preview https config, not server (#19633) (98b3160)
  • ssr: use optional chaining to prevent "undefined is not an object" happening in ssrRewriteStacktrace (#19612) (4309755)

Miscellaneous Chores

  • extend commit hash correctly when ambigious with a non-commit object (#19600) (89a6287)

6.2.1 (2025-03-07)

Features

  • add *?url&no-inline type and warning for .json?inline / .json?no-inline (#19566) (c0d3667)

Bug Fixes

  • css: stabilize css module hashes with lightningcss in dev mode (#19481) (92125b4)
  • deps: update all non-major dependencies (#19555) (f612e0f)
  • reporter: fix incorrect bundle size calculation with non-ASCII characters (#19561) (437c0ed)
  • sourcemap: combine sourcemaps with multiple sources without matched source (#18971) (e3f6ae1)
  • ssr: named export should overwrite export all (#19534) (2fd2fc1)

Performance Improvements

Miscellaneous Chores

  • css: move environment destructuring after condition check (#19492) (c9eda23)
  • html: remove unnecessary value check (#19491) (797959f)

Code Refactoring

Tests

6.2.0 (2025-02-25)

Bug Fixes

  • deps: update all non-major dependencies (#19501) (c94c9e0)
  • worker: string interpolation in dynamic worker options (#19476) (07091a1)

Miscellaneous Chores

6.2.0-beta.1 (2025-02-21)

Bug Fixes

  • css: temporary add ?. after this.getModuleInfo in vite:css-post (#19478) (12b0b8a)

6.2.0-beta.0 (2025-02-21)

Features

Miscellaneous Chores

6.1.1 (2025-02-19)

Features

Bug Fixes

Miscellaneous Chores

Code Refactoring

6.1.0 (2025-02-05)

Features

Bug Fixes

  • avoid builtStart during vite optimize (#19356) (fdb36e0)
  • build: fix stale build manifest on watch rebuild (#19361) (fcd5785)
  • allow expanding env vars in reverse order (#19352) (3f5f2bd)
  • avoid packageJson without name in resolveLibCssFilename (#19324) (f183bdf)
  • html: fix css disorder when building multiple entry html (#19143) (e7b4ba3)
  • css: less [@plugin](https://github.com/plugin) imports of JS files treated as CSS and rebased (fix #19268) (#19269) (602b373)
  • deps: update all non-major dependencies (#19296) (2bea7ce)
  • don't call buildStart hooks for vite optimize (#19347) (19ffad0)
  • don't call next middleware if user sent response in proxy.bypass (#19318) (7e6364d)
  • resolve: preserve hash/search of file url (#19300) (d1e1b24)
  • resolve: warn if node-like builtin was imported when resolve.builtin is empty (#19312) (b7aba0b)
  • respect top-level server.preTransformRequests (#19272) (12aaa58)
  • ssr: fix transform error due to export all id scope (#19331) (e28bce2)
  • ssr: pretty print plugin error in ssrLoadModule (#19290) (353c467)
  • use nodeLikeBuiltins for ssr.target: 'webworker' without noExternal: true (#19313) (9fc31b6)
  • change ResolvedConfig type to interface to allow extending it (#19210) (bc851e3)
  • correctly resolve hmr dep ids and fallback to url (#18840) (b84498b)
  • deps: update all non-major dependencies (#19190) (f2c07db)
  • hmr: register inlined assets as a dependency of CSS file (#18979) (eb22a74)
  • make --force work for all environments (#18901) (51a42c6)
  • resolve: support resolving TS files by JS extension specifiers in JS files (#18889) (612332b)
  • ssr: combine empty source mappings (#19226) (ba03da2)
  • use loc.file from rollup errors if available (#19222) (ce3fe23)
  • utils: clone RegExp values with new RegExp instead of structuredClone (fix #19245, fix #18875) (#19247) (56ad2be)

Performance Improvements

Documentation

Code Refactoring

Miscellaneous Chores

Beta Changelogs

6.1.0-beta.2 (2025-02-04)

See 6.1.0-beta.2 changelog

6.1.0-beta.1 (2025-02-04)

See 6.1.0-beta.1 changelog

6.1.0-beta.0 (2025-01-24)

See 6.1.0-beta.0 changelog

6.0.11 (2025-01-21)

Bug Fixes

  • preview.allowedHosts with specific values was not respected (#19246) (aeb3ec8)
  • allow CORS from loopback addresses by default (#19249) (3d03899)

6.0.10 (2025-01-20)

Bug Fixes

6.0.9 (2025-01-20)

⚠ BREAKING CHANGES

  • check host header to prevent DNS rebinding attacks and introduce server.allowedHosts
  • default server.cors: false to disallow fetching from untrusted origins

Bug Fixes

  • check host header to prevent DNS rebinding attacks and introduce server.allowedHosts (bd896fb)
  • default server.cors: false to disallow fetching from untrusted origins (b09572a)
  • verify token for HMR WebSocket connection (029dcd6)

6.0.8 (2025-01-20)

Bug Fixes

  • avoid SSR HMR for HTML files (#19193) (3bd55bc)
  • build time display 7m 60s (#19108) (cf0d2c8)
  • deps: update all non-major dependencies (#19098) (8639538)
  • don't resolve URL starting with double slash (#19059) (35942cd)
  • ensure server.close() only called once (#19204) (db81c2d)
  • optimizer: use correct default install state path for yarn PnP (#19119) (e690d8b)
  • resolve.conditions in ResolvedConfig was defaultServerConditions (#19174) (ad75c56)
  • tree shake stringified JSON imports (#19189) (f2aed62)
  • types: improve ESBuildOptions.include / exclude type to allow readonly (string | RegExp)[] (#19146) (ea53e70)
  • use shared sigterm callback (#19203) (47039f4)

Miscellaneous Chores

6.0.7 (2025-01-02)

Features

Bug Fixes

  • fix minify when builder.sharedPlugins: true (#19025) (f7b1964)
  • html: error while removing vite-ignore attribute for inline script (#19062) (a492253)
  • skip the plugin if it has been called before with the same id and importer (#19016) (b178c90)
  • ssr: fix semicolon injection by ssr transform (#19097) (1c102d5)

Performance Improvements

6.0.6 (2024-12-26)

Bug Fixes

  • css: resolve style tags in HTML files correctly for lightningcss (#19001) (afff05c)
  • css: show correct error when unknown placeholder is used for CSS modules pattern in lightningcss (#19070) (9290d85)
  • replace runner-side path normalization with fetchModule-side resolve (#18361) (9f10261)
  • resolve: handle package.json with UTF-8 BOM (#19000) (902567a)
  • ssrTransform: preserve line offset when transforming imports (#19004) (1aa434e)

Reverts

Miscellaneous Chores

Tests

6.0.5 (2024-12-20)

Bug Fixes

6.0.4 (2024-12-19)

Bug Fixes

  • this.resolve skipSelf should not skip for different id or import (#18903) (4727320)
  • css: escape double quotes in url() when lightningcss is used (#18997) (3734f80)
  • css: root relative import in sass modern API on Windows (#18945) (c4b532c)
  • css: skip non css in custom sass importer (#18970) (21680bd)
  • deps: update all non-major dependencies (#18967) (d88d000)
  • deps: update all non-major dependencies (#18996) (2b4f115)
  • fallback terser to main thread when function options are used (#18987) (12b612d)
  • merge client and ssr values for pluginContainer.getModuleInfo (#18895) (258cdd6)
  • optimizer: keep NODE_ENV as-is when keepProcessEnv is true (#18899) (8a6bb4e)
  • ssr: recreate ssrCompatModuleRunner on restart (#18973) (7d6dd5d)

Miscellaneous Chores

  • better validation error message for dts build (#18948) (63b82f1)
  • deps: update all non-major dependencies (#18916) (ef7a6a3)
  • deps: update dependency @rollup/plugin-node-resolve to v16 (#18968) (62fad6d)

Code Refactoring

  • make internal invoke event to use the same interface with handleInvoke (#18902) (27f691b)
  • simplify manifest plugin code (#18890) (1bfe21b)

Tests

6.0.3 (2024-12-05)

Bug Fixes

  • config: bundle files referenced with imports field (#18887) (2b5926a)
  • config: make stacktrace path correct when sourcemap is enabled (#18833) (20fdf21)
  • css: rewrite url when image-set and url exist at the same time (#18868) (d59efd8)
  • deps: update all non-major dependencies (#18853) (5c02236)
  • handle postcss load unhandled rejections (#18886) (d5fb653)
  • html: allow unexpected question mark in tag name (#18852) (1b54e50)
  • make handleInvoke interface compatible with invoke (#18876) (a1dd396)
  • make result interfaces for ModuleRunnerTransport[#invoke](https://github.com/vitejs/vite/issues/invoke) more explicit (#18851) (a75fc31)
  • merge environments.ssr.resolve with root ssr config (#18857) (3104331)
  • module-runner: decode uri for file url passed to import (#18837) (88e49aa)
  • no permission to create vite config file (#18844) (ff47778)
  • remove CSS import in CJS correctly in some cases (#18885) (690a36f)

Miscellaneous Chores

  • fix duplicate attributes issue number in comment (#18860) (ffee618)

Code Refactoring

  • fix logic errors found by no-unnecessary-condition rule (#18891) (ea802f8)

6.0.2 (2024-12-02)

Features

Bug Fixes

  • css: referencing aliased svg asset with lightningcss enabled errored (#18819) (ae68958)
  • don't store temporary vite config file in node_modules if deno (#18823) (a20267b)
  • manifest: use style.css as a key for the style file for cssCodesplit: false (#18820) (ec51115)
  • optimizer: resolve all promises when cancelled (#18826) (d6e6194)
  • resolve: don't set builtinModules to external by default (#18821) (2250ffa)
  • ssr: set ssr.target: 'webworker' defaults as fallback (#18827) (b39e696)

Miscellaneous Chores

Code Refactoring

  • make properties of ResolvedServerOptions and ResolvedPreviewOptions required (#18796) (51a5569)

6.0.1 (2024-11-27)

Bug Fixes

  • default empty server proxy prevents starting http2 server (#18788) (bbaf514)
  • manifest: do not override existing js manifest entry (#18776) (3b0837e)
  • server: close _ssrCompatModuleRunner on server close (#18784) (9b4c410)
  • server: skip hot channel client normalization for wsServer (#18782) (cc7670a)
  • worker: fix applyToEnvironment hooks on worker build (#18793) (0c6cdb0)

Reverts

Miscellaneous Chores

6.0.0 (2024-11-26)

Vite 6 is out!

Today, we're taking another big step in Vite's story. The Vite team, contributors, and ecosystem partners are excited to announce the release of the next Vite major:

We want to thank the more than 1K contributors to Vite Core and the maintainers and contributors of Vite plugins, integrations, tools, and translations that have helped us craft this new major. We invite you to get involved and help us improve Vite for the whole ecosystem. Learn more at our Contributing Guide.

⚠ BREAKING CHANGES

  • drop node 21 support in version ranges (#18729)
  • deps: update dependency dotenv-expand to v12 (#18697)
  • resolve: allow removing conditions (#18395)
  • html: support more asset sources (#11138)
  • remove fs.cachedChecks option (#18493)
  • proxy bypass with WebSocket (#18070)
  • css: remove default import in ssr dev (#17922)
  • lib: use package name for css output file name (#18488)
  • update to chokidar v4 (#18453)
  • support file:// resolution (#18422)
  • deps: update postcss-load-config to v6 (#15235)
  • css: change default sass api to modern/modern-compiler (#17937)
  • css: load postcss config within workspace root only (#18440)
  • default build.cssMinify to 'esbuild' for SSR (#15637)
  • json: add json.stringify: 'auto' and make that the default (#18303)
  • bump minimal terser version to 5.16.0 (#18209)
  • deps: migrate fast-glob to tinyglobby (#18243)

Features

Bug Fixes

  • createRunnableDevEnvironment returns RunnableDevEnvironment, not DevEnvironment (#18673) (74221c3)
  • getModulesByFile should return a serverModule (#18715) (b80d5ec)
  • catch error in full reload handler (#18713) (a10e741)
  • client: overlay not appearing when multiple vite clients were loaded (#18647) (27d70b5)
  • deps: update all non-major dependencies (#18691) (f005461)
  • deps: update dependency dotenv-expand to v12 (#18697) (0c658de)
  • display pre-transform error details (#18764) (554f45f)
  • exit code on SIGTERM (#18741) (cc55e36)
  • expose missing InterceptorOptions type (#18766) (6252c60)
  • html: fix inline proxy modules invalidation (#18696) (8ab04b7)
  • log error when send in module runner failed (#18753) (ba821bb)
  • module-runner: make evaluator optional (#18672) (fd1283f)
  • optimizer: detect npm / yarn / pnpm dependency changes correctly (#17336) (#18560) (818cf3e)
  • optimizer: trigger onCrawlEnd after manual included deps are registered (#18733) (dc60410)
  • optimizer: workaround firefox's false warning for no sources source map (#18665) (473424e)
  • ssr: replace __vite_ssr_identity__ with (0, ...) and inject ; between statements (#18748) (94546be)
  • cjs build for perEnvironmentState et al (#18656) (95c4b3c)
  • html: externalize rollup.external scripts correctly (#18618) (55461b4)
  • include more modules to prefix-only module list (#18667) (5a2103f)
  • ssr: format ssrTransform parse error (#18644) (d9be921)
  • ssr: preserve fetchModule error details (#18626) (866a433)
  • browser field should not be included by default for consumer: 'server' (#18575) (87b2347)
  • client: detect ws close correctly (#18548) (637d31b)
  • resolve: run ensureVersionQuery for SSR (#18591) (63207e5)
  • use server.perEnvironmentStartEndDuringDev (#18549) (fe30349)
  • allow nested dependency selector to be used for optimizeDeps.include for SSR (#18506) (826c81a)
  • asset new URL(,import.meta.url) match (#18194) (5286a90)
  • close watcher if it's disabled (#18521) (85bd0e9)
  • config: write temporary vite config to node_modules (#18509) (72eaef5)
  • css: cssCodeSplit uses the current environment configuration (#18486) (eefe895)
  • json: don't json.stringify arrays (#18541) (fa50b03)
  • less: prevent rebasing [@import](https://github.com/import) url(...) (#17857) (aec5fdd)
  • lib: only resolve css bundle name if have styles (#18530) (5d6dc49)
  • scss: improve error logs (#18522) (3194a6a)
  • define in environment config was not working (#18515) (052799e)
  • build: apply resolve.external/noExternal to server environments (#18495) (5a967cb)
  • config: remove error if require resolve to esm (#18437) (f886f75)
  • consider URLs with any protocol to be external (#17369) (a0336bd)
  • css: remove default import in ssr dev (#17922) (eccf663)
  • use picomatch to align with tinyglobby (#18503) (437795d)
  • css: cssCodeSplit in environments.xxx.build is invalid (#18464) (993e71c)
  • css: make sass types work with sass-embedded (#18459) (89f8303)
  • deps: update all non-major dependencies (#18484) (2ec12df)
  • handle warmup glob hang (#18462) (409fa5c)
  • manifest: non entry CSS chunk src was wrong (#18133) (c148676)
  • module-runner: delay function eval until module runner instantiation (#18480) (472afbd)
  • plugins: noop if config hook returns same config reference (#18467) (bd540d5)
  • return the same instance of ModuleNode for the same EnvironmentModuleNode (#18455) (5ead461)
  • set scripts imported by HTML moduleSideEffects=true (#18411) (2ebe4b4)
  • use websocket to test server liveness before client reload (#17891) (7f9f8c6)
  • add typing to CSSOptions.preprocessorOptions (#18001) (7eeb6f2)
  • default build.cssMinify to 'esbuild' for SSR (#15637) (f1d3bf7)
  • dev: prevent double URL encoding in server.open on macOS (#18443) (56b7176)
  • preview: set resolvedUrls null after close (#18445) (65014a3)
  • ssr: inject identity function at the top (#18449) (0ab20a3)
  • ssr: preserve source maps for hoisted imports (fix #16355) (#16356) (8e382a6)
  • augment hash for CSS files to prevent chromium erroring by loading previous files (#18367) (a569f42)
  • cli: --watch should not override build.watch options (#18390) (b2965c8)
  • css: don't transform sass function calls with namespace (#18414) (dbb2604)
  • deps: update open dependency to 10.1.0 (#18349) (5cca4bf)
  • deps: update all non-major dependencies (#18345) (5552583)
  • more robust plugin.sharedDuringBuild (#18351) (47b1270)
  • ssr: this in exported function should be undefined (#18329) (bae6a37)
  • worker: rewrite rollup output.format with worker.format on worker build error (#18165) (dc82334)
  • injectQuery double encoding (#18246) (2c5f948)
  • add position to import analysis resolve exception (#18344) (0fe95d4)
  • assets: make srcset parsing HTML spec compliant (#16323) (#18242) (0e6d4a5)
  • css: dont remove JS chunk for pure CSS chunk when the export is used (#18307) (889bfc0)
  • deps: bump tsconfck (#18322) (67783b2)
  • deps: update all non-major dependencies (#18292) (5cac054)
  • destroy the runner when runnable environment is closed (#18282) (5212d09)
  • handle yarn command fail when root does not exist (#18141) (460aaff)
  • hmr: don't try to rewrite imports for direct CSS soft invalidation (#18252) (a03bb0e)
  • make it easier to configure environment runner (#18273) (fb35a78)
  • middleware-mode: call all hot.listen when server restart (#18261) (007773b)
  • optimizer: don't externalize transitive dep package name with asset extension (#18152) (fafc7e2)
  • resolve: fix resolve cache key for external conditions (#18332) (93d286c)
  • resolve: fix resolve cache to consider conditions and more (#18302) (2017a33)
  • types: add more overload to defineConfig (#18299) (94e34cf)
  • asset import should skip handling data URIs (#18163) (70813c7)
  • cache the runnable environment module runner (#18215) (95020ab)
  • call this.hot.close for non-ws HotChannel (#18212) (bad0ccc)
  • close HotChannel on environment close (#18206) (2d148e3)
  • config: treat all files as ESM on deno (#18081) (c1ed8a5)
  • css: ensure sass compiler initialized only once (#18128) (4cc5322)
  • css: fix lightningcss dep url resolution with custom root (#18125) (eb08f60)
  • css: fix missing source file warning with sass modern api custom importer (#18113) (d7763a5)
  • data-uri: only match ids starting with data: (#18241) (ec0efe8)
  • deps: update all non-major dependencies (#18170) (c8aea5a)
  • deps: upgrade rollup 4.22.4+ to ensure avoiding XSS (#18180) (ea1d0b9)
  • html: make build-html plugin work with sharedPlugins (#18214) (34041b9)
  • mixedModuleGraph: handle undefined id in getModulesByFile (#18201) (768a50f)
  • optimizer: re-optimize when changing config webCompatible (#18221) (a44b0a2)
  • require serialization for HMRConnection.send on implementation side (#18186) (9470011)
  • ssr: fix source map remapping with multiple sources (#18150) (e003a2c)
  • use config.consumer instead of options?.ssr / config.build.ssr (#18140) (21ec1ce)
  • vite: refactor "module cache" to "evaluated modules", pass down module to "runInlinedModule" (#18092) (e83beff)
  • avoid DOM Clobbering gadget in getRelativeUrlFromDocument (#18115) (ade1d89)
  • fs raw query (#18112) (9d2413c)
  • preload: throw error preloading module as well (#18098) (ba56cf4)
  • allow scanning exports from script module in svelte (#18063) (7d699aa)
  • build: declare preload-helper has no side effects (#18057) (587ad7b)
  • css: fallback to mainthread if logger or pkgImporter option is set for sass (#18071) (d81dc59)
  • dynamicImportVars: correct glob pattern for paths with parentheses (#17940) (2a391a7)
  • ensure req.url matches moduleByEtag URL to avoid incorrect 304 (#17997) (abf04c3)
  • html: escape html attribute (#18067) (5983f36)
  • incorrect environment consumer option resolution (#18079) (0e3467e)
  • preload: allow ignoring dep errors (#18046) (3fb2889)
  • store backwards compatible ssrModule and ssrError (#18031) (cf8ced5)

Performance Improvements

  • reduce bundle size for Object.keys(import.meta.glob(...)) / Object.values(import.meta.glob(...)) (#18666) (ed99a2c)
  • worker: inline worker without base64 (#18752) (90c66c9)
  • remove strip-ansi for a node built-in (#18630) (5182272)
  • css: skip style.css extraction if code-split css (#18470) (34fdb6b)
  • call module.enableCompileCache() (#18323) (18f1dad)
  • use crypto.hash when available (#18317) (2a14884)

Documentation

Reverts

Miscellaneous Chores

Code Refactoring

Build System

Tests

Beta Changelogs

6.0.0-beta.10 (2024-11-14)

See 6.0.0-beta.10 changelog

6.0.0-beta.9 (2024-11-07)

See 6.0.0-beta.9 changelog

6.0.0-beta.8 (2024-11-01)

See 6.0.0-beta.8 changelog

6.0.0-beta.7 (2024-10-30)

See 6.0.0-beta.7 changelog

6.0.0-beta.6 (2024-10-28)

See 6.0.0-beta.6 changelog

6.0.0-beta.5 (2024-10-24)

See 6.0.0-beta.5 changelog

6.0.0-beta.4 (2024-10-23)

See 6.0.0-beta.4 changelog

6.0.0-beta.3 (2024-10-15)

See 6.0.0-beta.3 changelog

6.0.0-beta.2 (2024-10-01)

See 6.0.0-beta.2 changelog

6.0.0-beta.1 (2024-09-16)

See 6.0.0-beta.1 changelog

6.0.0-beta.0 (2024-09-12)

See 6.0.0-beta.0 changelog

Previous Changelogs

5.4.x (2024-08-07 - 2024-11-11)

See 5.4.11 changelog

5.3.x (2024-06-13 - 2024-07-25)

See 5.3.5 changelog

5.2.x (2024-03-20 - 2024-05-28)

See 5.2.12 changelog

5.1.x (2024-02-08 - 2024-03-11)

See 5.1.6 changelog

5.0.x (2023-11-16 - 2024-01-05)

See 5.0.11 changelog

4.5.x (2023-10-18)

See 4.5.0 changelog

4.4.x (2023-07-06 - 2023-10-05)

See 4.4.11 changelog

4.3.x (2023-04-20 - 2023-05-26)

See 4.3.0 changelog

4.2.x (2023-03-16 - 2023-04-18)

See 4.2.2 changelog

4.1.x (2023-02-02 - 2023-02-21)

See 4.1.4 changelog

4.0.x (2022-12-09 - 2023-01-03)

See 4.0.4 changelog

3.2.x (2022-10-26 - 2023-04-18)

See 3.2.6 changelog

3.1.x (2022-09-05 - 2022-09-19)

See 3.1.3 changelog

3.0.x (2022-07-13 - 2022-08-19)

See 3.0.9 changelog

2.9.x (2022-03-30 - 2022-08-12)

See 2.9.15 changelog

2.8.x (2022-02-09 - 2022-03-01)

See 2.8.6 changelog

2.7.x (2021-10-28 - 2021-12-28)

See 2.7.13 changelog

2.6.x (2021-09-20 - 2021-10-27)

See 2.6.14 changelog

2.5.x (2021-08-03 - 2021-09-13)

See 2.5.10 changelog

2.4.x (2021-06-27 - 2021-07-27)

See 2.4.4 changelog

2.3.x (2021-05-11 - 2021-06-19)

See 2.3.8 changelog

2.2.x (2021-04-19 - 2021-05-03)

See 2.2.4 changelog

2.1.x (2021-03-15 - 2021-03-31)

See 2.1.5 changelog

2.0.x (2021-02-16 - 2021-03-02)

See 2.0.5 changelog