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