Vite 7 is now supported in the Cloudflare Vite plugin. See the Vite changelog for a list of changes. Note that the minimum Node.js versions supported by Vite 7 are 20.19 and 22.12. We continue to support Vite 6 so you do not need to immediately upgrade.
Workers - The Cloudflare Vite plugin now supports Vite 7
Cloudflare Developer Platform Changelog · 2025-07-17
Related items
Workers - Enhanced support for static assets with the Cloudflare Vite plugin
You can now use any of Vite's static asset handling features in your Worker as well as in your frontend. These include importing assets as URLs, importing as strings and importing from the public directory as well as inlining assets. Additionally, assets imported as URLs in your Worker are now automatically moved to...
Workers - The Cloudflare Vite plugin is now Generally Available
The Cloudflare Vite plugin has reached v1.0 and is now Generally Available ("GA"). When you use @cloudflare/vite-plugin , you can use Vite's local development server and build tooling, while ensuring that while developing, your code runs in workerd , the open-source Workers runtime. This lets you get the best of bot...
Workers - Improved React Server Components support in the Cloudflare Vite plugin
The Cloudflare Vite plugin now integrates seamlessly @vitejs/plugin-rsc , the official Vite plugin for React Server Components . A childEnvironments option has been added to the plugin config to enable using multiple environments within a single Worker. The parent environment can then import modules from a child env...
Workers - Support for ctx.exports in @cloudflare/vitest-pool-workers
The @cloudflare/vitest-pool-workers package now supports the ctx.exports API , allowing you to access your Worker's top-level exports during tests. You can access ctx.exports in unit tests by calling createExecutionContext() : import { createExecutionContext } from "cloudflare:test" ; import { it , expect } from "vi...
Workers - Build TanStack Start apps with the Cloudflare Vite plugin
The Cloudflare Vite plugin now supports TanStack Start apps. Get started with new or existing projects. New projects Create a new TanStack Start project that uses the Cloudflare Vite plugin via the create-cloudflare CLI: npm create cloudflare@latest -- my-tanstack-start-app --framework=tanstack-start yarn create clo...
Workers - Wrangler and the Cloudflare Vite plugin support `.env` files in local development
Now, you can use .env files to provide secrets and override environment variables on the env object during local development with Wrangler and the Cloudflare Vite plugin. Previously in local development, if you wanted to provide secrets or environment variables during local development, you had to use .dev.vars file...