[PR #511] [CLOSED] chore: upgrade to Vite 8 and Vitest 4.1 #633

Closed
opened 2026-05-06 13:09:12 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/511
Author: @james-elicx
Created: 3/12/2026
Status: Closed

Base: mainHead: chore/vite8-vitest4


📝 Commits (2)

📊 Changes

25 files changed (+230 additions, -715 deletions)

View changed files

📝 benchmarks/vinext/package.json (+1 -1)
📝 examples/app-router-cloudflare/package.json (+1 -1)
📝 examples/app-router-nitro/package.json (+1 -1)
📝 examples/app-router-playground/package.json (+1 -1)
📝 examples/benchmarks/package.json (+1 -1)
📝 examples/hackernews/package.json (+1 -1)
📝 examples/nextra-docs-template/package.json (+1 -1)
📝 examples/pages-router-cloudflare/package.json (+1 -1)
📝 examples/realworld-api-rest/package.json (+1 -1)
📝 examples/tpr-demo/package.json (+1 -1)
📝 package.json (+2 -5)
📝 packages/vinext/package.json (+2 -2)
📝 packages/vinext/src/cli.ts (+2 -2)
📝 packages/vinext/src/index.ts (+10 -32)
📝 pnpm-lock.yaml (+194 -654)
📝 tests/fixtures/app-basic/package.json (+1 -1)
📝 tests/fixtures/app-cjs-violation/package.json (+1 -1)
📝 tests/fixtures/ecosystem/better-auth/package.json (+1 -1)
📝 tests/fixtures/ecosystem/next-intl/package.json (+1 -1)
📝 tests/fixtures/ecosystem/next-themes/package.json (+1 -1)

...and 5 more files

📄 Description

Summary

  • Bumps vite from ^7.x to ^8.0.0 across all 23 workspace packages (root, packages/vinext, all fixtures, all examples, benchmarks)
  • Bumps vitest from ^3.2.1 to ^4.1.0
  • Removes pnpm.overrides.rollup (Vite 8 ships rolldown internally)

Breaking-change migrations applied

Vite 8

  • rollupOptionsrolldownOptions: Renamed in packages/vinext/src/index.ts (5 occurrences across global config + rsc/ssr/client environments) and packages/vinext/src/cli.ts (2 occurrences). The onwarn fallback checks both names to stay compatible with user-supplied configs.
  • esbuildoxc: Removed the viteMajorVersion >= 8 branch; always uses oxc now.
  • resolve.tsconfigPaths: Removed the dead vite-tsconfig-paths plugin branch; uses Vite's native resolve.tsconfigPaths unconditionally.
  • Removed the now-unused getViteMajorVersion() helper and vite-tsconfig-paths import.

Vitest 4

  • No changes needed — the existing vitest.config.ts had no deprecated options.

Peer dependency warnings

@cloudflare/vite-plugin, @vitejs/plugin-rsc, @vitejs/plugin-react, vitefu, and @tailwindcss/vite still declare Vite 6/7 in their peer ranges. These are pre-existing and expected; the packages work correctly with Vite 8.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/511 **Author:** [@james-elicx](https://github.com/james-elicx) **Created:** 3/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/vite8-vitest4` --- ### 📝 Commits (2) - [`91a9a05`](https://github.com/cloudflare/vinext/commit/91a9a058222f328a17f7bf2221d49120352ce7ad) chore: upgrade to Vite 8 and Vitest 4.1 - [`e8679f7`](https://github.com/cloudflare/vinext/commit/e8679f7c46ea0f57e85fbf1a26fcb5e5dee59211) fmt ### 📊 Changes **25 files changed** (+230 additions, -715 deletions) <details> <summary>View changed files</summary> 📝 `benchmarks/vinext/package.json` (+1 -1) 📝 `examples/app-router-cloudflare/package.json` (+1 -1) 📝 `examples/app-router-nitro/package.json` (+1 -1) 📝 `examples/app-router-playground/package.json` (+1 -1) 📝 `examples/benchmarks/package.json` (+1 -1) 📝 `examples/hackernews/package.json` (+1 -1) 📝 `examples/nextra-docs-template/package.json` (+1 -1) 📝 `examples/pages-router-cloudflare/package.json` (+1 -1) 📝 `examples/realworld-api-rest/package.json` (+1 -1) 📝 `examples/tpr-demo/package.json` (+1 -1) 📝 `package.json` (+2 -5) 📝 `packages/vinext/package.json` (+2 -2) 📝 `packages/vinext/src/cli.ts` (+2 -2) 📝 `packages/vinext/src/index.ts` (+10 -32) 📝 `pnpm-lock.yaml` (+194 -654) 📝 `tests/fixtures/app-basic/package.json` (+1 -1) 📝 `tests/fixtures/app-cjs-violation/package.json` (+1 -1) 📝 `tests/fixtures/ecosystem/better-auth/package.json` (+1 -1) 📝 `tests/fixtures/ecosystem/next-intl/package.json` (+1 -1) 📝 `tests/fixtures/ecosystem/next-themes/package.json` (+1 -1) _...and 5 more files_ </details> ### 📄 Description ## Summary - Bumps `vite` from `^7.x` to `^8.0.0` across all 23 workspace packages (root, `packages/vinext`, all fixtures, all examples, benchmarks) - Bumps `vitest` from `^3.2.1` to `^4.1.0` - Removes `pnpm.overrides.rollup` (Vite 8 ships rolldown internally) ## Breaking-change migrations applied ### Vite 8 - **`rollupOptions` → `rolldownOptions`**: Renamed in `packages/vinext/src/index.ts` (5 occurrences across global config + rsc/ssr/client environments) and `packages/vinext/src/cli.ts` (2 occurrences). The `onwarn` fallback checks both names to stay compatible with user-supplied configs. - **`esbuild` → `oxc`**: Removed the `viteMajorVersion >= 8` branch; always uses `oxc` now. - **`resolve.tsconfigPaths`**: Removed the dead `vite-tsconfig-paths` plugin branch; uses Vite's native `resolve.tsconfigPaths` unconditionally. - Removed the now-unused `getViteMajorVersion()` helper and `vite-tsconfig-paths` import. ### Vitest 4 - No changes needed — the existing `vitest.config.ts` had no deprecated options. ## Peer dependency warnings `@cloudflare/vite-plugin`, `@vitejs/plugin-rsc`, `@vitejs/plugin-react`, `vitefu`, and `@tailwindcss/vite` still declare Vite 6/7 in their peer ranges. These are pre-existing and expected; the packages work correctly with Vite 8. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:09:12 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#633
No description provided.