Skip to content

@cloudflare/vite-plugin@2.0.0-beta.v.3

Pre-release
Pre-release

Choose a tag to compare

@workers-devprod workers-devprod released this 20 Oct 12:14
· 4 commits to main since this release
7d57659

Patch Changes

  • #15846 a88cac4 Thanks @oddharsh! - Fail with an error instead of hanging when local dev requests can't work under Bun

    Bun's fetch() ignores the undici dispatcher that Miniflare routes requests through (oven-sh/bun#39247). Under Bun, createTestHarness()'s server.fetch() and server.getWorker()'s fetch(), email() and scheduled() now throw a UserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws a UserError. Each of these used to hang with no error. server.getWorker().getEnv() and getExport() keep working under Bun.

  • #16318 ff1f971 Thanks @jamesopstad! - Prevent legacy Wrangler configuration files from being silently ignored

    The Vite plugin now stops with an actionable error when wrangler.json, wrangler.jsonc, or wrangler.toml is present without cloudflare.config.ts. Run npx cf migrate --bundler vite to migrate the project before building.

  • Updated dependencies [3464abc]: