mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #511] [CLOSED] chore: upgrade to Vite 8 and Vitest 4.1 #633
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#633
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/511
Author: @james-elicx
Created: 3/12/2026
Status: ❌ Closed
Base:
main← Head:chore/vite8-vitest4📝 Commits (2)
91a9a05chore: upgrade to Vite 8 and Vitest 4.1e8679f7fmt📊 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
vitefrom^7.xto^8.0.0across all 23 workspace packages (root,packages/vinext, all fixtures, all examples, benchmarks)vitestfrom^3.2.1to^4.1.0pnpm.overrides.rollup(Vite 8 ships rolldown internally)Breaking-change migrations applied
Vite 8
rollupOptions→rolldownOptions: Renamed inpackages/vinext/src/index.ts(5 occurrences across global config + rsc/ssr/client environments) andpackages/vinext/src/cli.ts(2 occurrences). Theonwarnfallback checks both names to stay compatible with user-supplied configs.esbuild→oxc: Removed theviteMajorVersion >= 8branch; always usesoxcnow.resolve.tsconfigPaths: Removed the deadvite-tsconfig-pathsplugin branch; uses Vite's nativeresolve.tsconfigPathsunconditionally.getViteMajorVersion()helper andvite-tsconfig-pathsimport.Vitest 4
vitest.config.tshad no deprecated options.Peer dependency warnings
@cloudflare/vite-plugin,@vitejs/plugin-rsc,@vitejs/plugin-react,vitefu, and@tailwindcss/vitestill 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.