github cloudflare/workers-sdk @cloudflare/vite-plugin@2.0.0-rc.0

Minor Changes

  • #16917 d36b39d Thanks @jamesopstad! - Write Build Output to .cloudflare/output/v1/ and record the producer

    vite build and the experimental wrangler build --experimental-cf-build-output now write Build Output v1, with account settings nested under settings in the root config.json. They also record themselves as the producer, so readers can name the tool that wrote the output in error messages. Previews from Build Output read the account settings from their new location.

  • #16921 6785363 Thanks @jamesopstad! - Release Vite plugin v2 as a release candidate

    Vite plugin v2 is now published as 2.0.0-rc.<n> under the rc npm tag. The deprecated ParsedInputConfigWithWorker type has been removed; use CloudflareConfig instead.

  • #16907 0bf81ac Thanks @jamesopstad! - Make WorkerConfig the type accepted by auxiliary and prerender Worker config

    WorkerConfig from @cloudflare/vite-plugin is now the parsed Worker configuration that auxiliary and prerender Worker config accepts and returns, and that their callbacks receive as entryWorkerConfig. It previously re-exported the defineConfig() Worker type from @cloudflare/config, which didn't type-check as an auxiliary Worker config. To type a Worker in cloudflare.config.ts, import WorkerConfig from cf/config instead.

Patch Changes

  • #16946 e97c9f8 Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-16

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16917 d36b39d Thanks @jamesopstad! - Ask for a rebuild when preview finds missing or outdated Build Output

    When preview finds no Build Output, Build Output in the older v0 format, or Build Output in more than one format, it now says to build the project and preview again, rather than suggesting an upgrade.

  • Updated dependencies [d36b39d, d36b39d, 0bf81ac, e97c9f8, e97c9f8, 349fc4e, 0bf81ac]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.