Skip to content

[autoconfig] Suggest the plugin release candidate when cf needs a newer Vite plugin - #17010

Merged
edmundhung merged 1 commit into
mainfrom
edmundhung/autoconfig-vite-plugin-install-hint
Nov 18, 2026
Merged

edmundhung merged 1 commit into
mainfrom
edmundhung/autoconfig-vite-plugin-install-hint

Conversation

@edmundhung

Copy link
Copy Markdown
Member

When the Cloudflare Vite plugin is missing or too old for cf, autoconfig now suggests installing @cloudflare/vite-plugin@^2.0.0-rc.0, the same range it installs when configuring a project for cf. The previous @beta hint resolves to 2.0.0-beta.v.17, which cf rejects.


  • 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: only the suggested repair command changes

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f8bdcf4

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

@ask-bonk

ask-bonk Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

@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@17010

@cloudflare/build-output-utils

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

@cloudflare/codemods

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

@cloudflare/config

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

@cloudflare/containers-shared

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

create-cloudflare

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

@cloudflare/deploy-helpers

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-functions

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

@cloudflare/pages-shared

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

@cloudflare/runtime-types

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-plugin

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

@cloudflare/workers-auth

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: f8bdcf4

@edmundhung
edmundhung marked this pull request as ready for review November 18, 2026 13:28
@workers-devprod
workers-devprod requested review from a team and dario-piotrowicz and removed request for a team November 18, 2026 13:28
@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

@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

@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 — A small, correct change: the install hint now reads the same version-range constant that autoconfig uses when it installs the plugin. Tests and changeset are updated, and there are no findings.

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

getInstallCommand now builds its hint from CF_VITE_PLUGIN_VERSION_RANGE, the same constant used by the vite, react-router, solid-start and tanstack framework configs. The updated test expectations match the constant's value, ^2.0.0-rc.0.


📝 Documentation: ✅ LGTM

The changeset is a patch bump for @cloudflare/autoconfig and describes the changed hint accurately.


Reviewed commit: f8bdcf4f

@dario-piotrowicz dario-piotrowicz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM ✅

@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 a959051 into main Nov 18, 2026
93 checks passed
@edmundhung
edmundhung deleted the edmundhung/autoconfig-vite-plugin-install-hint branch November 18, 2026 16:08
@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