From 7abe854cdec4396a6a26809bfa3565410d53fd5f Mon Sep 17 00:00:00 2001 From: Vladimir Date: Thu, 5 Dec 2024 17:45:28 +0100 Subject: [PATCH] feat!: support Vite 6 (#7026) --- packages/vite-node/package.json | 4 ++-- packages/vitest/package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/vite-node/package.json b/packages/vite-node/package.json index ca21c0516bc5..18291cd0352b 100644 --- a/packages/vite-node/package.json +++ b/packages/vite-node/package.json @@ -74,7 +74,7 @@ "dist" ], "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "scripts": { "build": "rimraf dist && rollup -c", @@ -86,7 +86,7 @@ "debug": "^4.3.7", "es-module-lexer": "^1.5.4", "pathe": "^1.1.2", - "vite": "^5.0.0" + "vite": "^5.0.0 || ^6.0.0" }, "devDependencies": { "@jridgewell/trace-mapping": "^0.3.25", diff --git a/packages/vitest/package.json b/packages/vitest/package.json index e88ca495a49d..9decf2bc06db 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -115,7 +115,7 @@ "dist" ], "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "scripts": { "build": "rimraf dist && rollup -c", @@ -123,7 +123,7 @@ }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "@vitest/browser": "workspace:*", "@vitest/ui": "workspace:*", "happy-dom": "*", @@ -167,7 +167,7 @@ "tinyexec": "^0.3.1", "tinypool": "^1.0.2", "tinyrainbow": "^1.2.0", - "vite": "^5.0.0", + "vite": "^5.0.0 || ^6.0.0", "vite-node": "workspace:*", "why-is-node-running": "^2.3.0" },