Repository navigation
chore: move to cf 1.0, Vite+ 1.x and drop Wrangler - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
vite-plus1.1.0,cf1.0.0-beta.14,@cloudflare/vite-plugin2.0 beta, TypeScript 7.0.2,@types/node26.6.4, andminiflare5.20261006.1-alpha (the versioncfand the Vite plugin use).wrangler,@cloudflare/vitest-plugin(it depends on Wrangler), and the directvite/vitestdevDependencies. Wrangler no longer appears inpnpm-lock.yaml.pnpm-workspace.yamlpinsvite@*to@voidzero-dev/vite-plus-core@1.1.0andvitest@*to 5.0.3 (fromvp toolchain vitest).cloudflare.config.tsusesdefineConfig({ worker: { ... } })fromcf/config. The Vite plugin no longer needsexperimental.newConfig. The compatibility date is now 2026-10-06.worker-configuration.d.tsandtest/env.d.tsare gone.cf workers typesgenerates types into the gitignored.cloudflare/types/, onpostinstallor withpnpm types. Tests have their owntest/tsconfig.jsonwith Node types.test/global-setup.tsrunsvp build, andtest/harness.tsloads the built bundle into Miniflare.test/index.test.tsusesmf.dispatchFetchand keeps the same two assertions.deployis nowvp build && cf deploy --prebuilt, and there is a newtypesscript.previewis gone.cf devandcf buildexpect avitebinary that Vite+ doesn't ship, so dev and build still go throughvp.voidzero-dev/setup-vpv1.21.1.AGENTS.mdandREADME.mdare updated to match, including the template setup steps.Why
Checks
pnpm install: passes and generates.cloudflare/types/index.d.tspnpm check: passes with 0 errors and 1 warning (bindingsis imported incloudflare.config.tsbut not used yet)pnpm test: 2/2 passpnpm build: passescf deploy --prebuilt --dry-run: reads the 0.31 KiB build outputgrep -c wrangler pnpm-lock.yaml: 0pnpm dev:/returns the greeting and/api/helloreturns{"hello":"world"}as JSON