Skip to content

[autoconfig] Require Vite 7 or later for Vite projects on cf - #17009

Merged
edmundhung merged 1 commit into
mainfrom
edmundhung/vibrant-bhabha-bae626
Nov 18, 2026
Merged

edmundhung merged 1 commit into
mainfrom
edmundhung/vibrant-bhabha-bae626

Conversation

@edmundhung

Copy link
Copy Markdown
Member

Part of RM-31810.

For cf, autoconfig now requires Vite 7 or later in Vite projects. cf installs @cloudflare/vite-plugin v2, which has a vite: ^7.0.0 || ^8.0.0 peer dependency, so with Vite 6 setup failed with an ERESOLVE error after the user had confirmed it. The version check now rejects Vite 6 before any change is made. Wrangler keeps its 6.0.0 minimum.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: framework version requirements for cf are documented separately, as part of the cf GA docs

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 73996fc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/autoconfig Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@17009

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@17009

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@17009

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@17009

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@17009

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@17009

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@17009

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@17009

miniflare

npm i https://pkg.pr.new/miniflare@17009

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@17009

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@17009

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@17009

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@17009

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@17009

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@17009

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@17009

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@17009

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@17009

wrangler

npm i https://pkg.pr.new/wrangler@17009

commit: 73996fc

ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

ask-bonk Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

I'm Bonk, and I've done a quick review of your PR.

Raises the Vite minimum for cf autoconfiguration.

  1. P1 Posted 1 inline suggestion.

github run

@edmundhung
edmundhung marked this pull request as ready for review November 18, 2026 13:35
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team November 18, 2026 13:35
@workers-devprod

workers-devprod commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — This is a small, well-tested change that limits the Vite 7 minimum to the cf target. No issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code Quality: ✅ LGTM

The cf-only frameworkPackageInfo for Vite is correct, and the tests cover both the cf and wrangler targets.


📝 Documentation: ✅ LGTM

The changeset and the inline comments describe the new behaviour correctly.


Reviewed commit: 73996fc1

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Nov 18, 2026
@edmundhung
edmundhung merged commit 496a062 into main Nov 18, 2026
120 of 122 checks passed
@edmundhung
edmundhung deleted the edmundhung/vibrant-bhabha-bae626 branch November 18, 2026 14:21
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants