chore: upgrade Vite+ to 0.2.9 (#40762)

This commit is contained in:
yyh
2026-08-14 04:42:28 +00:00
committed by GitHub
parent 3cd23d4ef8
commit 0f63a05d04
816 changed files with 1782 additions and 2180 deletions
+4 -2
View File
@@ -12,7 +12,7 @@ import net from 'node:net'
import os from 'node:os'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { afterEach, describe, expect, it } from 'vitest'
import { afterEach, describe, expect, it } from 'vite-plus/test'
const tempDirs: string[] = []
type DevProxyCliProcess = ChildProcessByStdio<null, Readable, Readable>
@@ -99,7 +99,9 @@ const fetchTextWithRetry = async (url: string) => {
}
}
throw lastError
throw lastError instanceof Error
? lastError
: new Error('Fetching the proxy response failed with a non-Error value.', { cause: lastError })
}
const spawnCli = (args: readonly string[], cwd: string) => {
+1 -1
View File
@@ -4,7 +4,7 @@
import fs from 'node:fs/promises'
import os from 'node:os'
import path from 'node:path'
import { afterEach, describe, expect, it } from 'vitest'
import { afterEach, describe, expect, it } from 'vite-plus/test'
import { loadDevProxyConfig, parseDevProxyCliArgs, resolveDevProxyServerOptions } from './config'
const tempDirs: string[] = []
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* @vitest-environment node
*/
import { describe, expect, it } from 'vitest'
import { describe, expect, it } from 'vite-plus/test'
import {
getCookieHeaderValue,
rewriteCookieHeaderForUpstream,
+1 -1
View File
@@ -5,7 +5,7 @@ import { Buffer } from 'node:buffer'
import http from 'node:http'
import net from 'node:net'
import { PassThrough } from 'node:stream'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
import { resolveCookieRewriteLocalScopeKey, toScopedLocalCookieName } from './cookies'
import {
buildUpstreamUrl,