Skip to content

Adopt Vite+ across compatible Worker templates - #1176

Open
irvinebroque wants to merge 8 commits into
cloudflare:mainfrom
irvinebroque:codex/viteplus-project-defaults
Open

irvinebroque wants to merge 8 commits into
cloudflare:mainfrom
irvinebroque:codex/viteplus-project-defaults

Conversation

@irvinebroque

@irvinebroque irvinebroque commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds project-local Vite+ to 39 starters, with these scripts:

{
  "format": "vp fmt",
  "check:toolchain": "vp check"
}

Existing checks also run vp check. Vite/Vitest commands use vp; for example, the React starter builds with tsc -b && vp build, preserving its TypeScript check.

Updates Vite/Vitest overrides, lockfiles, and READMEs, and adds standalone install/check CI on Node 22 and 24. Formatting keeps the existing 80-column width, and npm lockfiles preserve existing dependency versions where compatible.

Validation: all 39 project-local Vite+ checks pass; all 39 npm lockfiles pass npm ci --dry-run; dependency and template lint checks pass.

Astro 5 starters use Vite+ for formatting/linting and retain Astro's Vite version. The two Remix/Vite 5 starters (remix-starter-template and to-do-list-kv-template) are excluded because they need framework upgrades.

Related PRs

Landing order:

  1. [autoconfig] Use Vite+ commands for Vite+ projects workers-sdk#16588 — merge first, then publish the @cloudflare/autoconfig release containing Vite+ command detection.
  2. feat(init): use Vite+ for new Worker projects cf#446 — update @cloudflare/autoconfig to that published release, then merge and publish cf.
  3. [cf] Document Vite+ project defaults cloudflare-docs#34741 — land after the cf release is available, so the documented cf init defaults match the released CLI.

Independent: #1176 can land at any point. Its starters invoke Vite+ directly and do not depend on the autoconfig change or a new cf release.

Keep the React Router client entry inside each template so Vite can serve it when standalone workspace boundaries exclude the parent pnpm store. Exercise sorting, book navigation, and the setup link in browser tests.
@github-actions

Copy link
Copy Markdown
Contributor
template name version latestVersion isDevDependency
agent-visibility-template hono 4.11.1 4.13.14 false
agent-visibility-template react 19.2.1 19.3.1 false
agent-visibility-template react-dom 19.2.1 19.3.1 false
agent-visibility-template @cloudflare/vite-plugin 1.52.1 1.66.0 true
agent-visibility-template @cloudflare/workers-types ^5.20261023.1 5.20261029.1 true
agent-visibility-template @types/react 19.2.7 19.3.0 true
agent-visibility-template @types/react-dom 19.2.3 19.3.0 true
agent-visibility-template @vitejs/plugin-react 5.1.1 6.1.2 true
agent-visibility-template typescript 5.9.3 7.0.2 true
agent-visibility-template vite npm:@voidzero-dev/vite-plus-core@1.4.0 8.3.5 true
agent-visibility-template wrangler 4.136.1 4.155.0 true
agent-commerce-analytics-template hono 4.11.1 4.13.14 false
agent-commerce-analytics-template react 19.2.1 19.3.1 false
agent-commerce-analytics-template react-dom 19.2.1 19.3.1 false
agent-commerce-analytics-template @cloudflare/vite-plugin 1.52.1 1.66.0 true
agent-commerce-analytics-template @cloudflare/workers-types ^5.20261023.1 5.20261029.1 true
agent-commerce-analytics-template @types/react 19.2.7 19.3.0 true
agent-commerce-analytics-template @types/react-dom 19.2.3 19.3.0 true
agent-commerce-analytics-template @vitejs/plugin-react 5.1.1 6.1.2 true
agent-commerce-analytics-template typescript 5.9.3 7.0.2 true
agent-commerce-analytics-template vite npm:@voidzero-dev/vite-plus-core@1.4.0 8.3.5 true
agent-commerce-analytics-template wrangler 4.136.1 4.155.0 true

Disable the SSR sort control until React attaches its event handlers. Hold script loading in the browser test to verify the control cannot lose a selection during hydration.
@irvinebroque
irvinebroque marked this pull request as ready for review October 29, 2026 23:10
@github-actions

Copy link
Copy Markdown
Contributor
template name version latestVersion isDevDependency
agent-visibility-template hono 4.11.1 4.13.14 false
agent-visibility-template react 19.2.1 19.3.1 false
agent-visibility-template react-dom 19.2.1 19.3.1 false
agent-visibility-template @cloudflare/vite-plugin 1.52.1 1.66.0 true
agent-visibility-template @cloudflare/vitest-plugin 1.4.10 1.4.11 true
agent-visibility-template @cloudflare/workers-types ^5.20261023.1 5.20261029.1 true
agent-visibility-template @types/react 19.2.7 19.3.0 true
agent-visibility-template @types/react-dom 19.2.3 19.3.0 true
agent-visibility-template @vitejs/plugin-react 5.1.1 6.1.2 true
agent-visibility-template typescript 5.9.3 7.0.2 true
agent-visibility-template vite npm:@voidzero-dev/vite-plus-core@1.4.0 8.3.5 true
agent-visibility-template wrangler 4.136.1 4.156.0 true
agent-commerce-analytics-template hono 4.11.1 4.13.14 false
agent-commerce-analytics-template react 19.2.1 19.3.1 false
agent-commerce-analytics-template react-dom 19.2.1 19.3.1 false
agent-commerce-analytics-template @cloudflare/vite-plugin 1.52.1 1.66.0 true
agent-commerce-analytics-template @cloudflare/vitest-plugin 1.4.10 1.4.11 true
agent-commerce-analytics-template @cloudflare/workers-types ^5.20261023.1 5.20261029.1 true
agent-commerce-analytics-template @types/react 19.2.7 19.3.0 true
agent-commerce-analytics-template @types/react-dom 19.2.3 19.3.0 true
agent-commerce-analytics-template @vitejs/plugin-react 5.1.1 6.1.2 true
agent-commerce-analytics-template typescript 5.9.3 7.0.2 true
agent-commerce-analytics-template vite npm:@voidzero-dev/vite-plus-core@1.4.0 8.3.5 true
agent-commerce-analytics-template wrangler 4.136.1 4.156.0 true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant