Repository navigation
[autoconfig] Suggest the plugin release candidate when cf needs a newer Vite plugin - #17010
Conversation
🦋 Changeset detectedLatest commit: f8bdcf4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
LGTM! |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
There was a problem hiding this comment.
✅ 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
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
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@betahint resolves to 2.0.0-beta.v.17, which cf rejects.