packages/vite-plugin-cloudflare/README.md
@cloudflare/vite-pluginThe Cloudflare Vite plugin enables a full-featured integration between Vite and the Workers runtime. Your Worker code runs inside workerd, matching the production behavior as closely as possible and providing confidence as you develop and deploy your applications.
// vite.config.ts
import { defineConfig } from "vite";
import { cloudflare } from "@cloudflare/vite-plugin";
export default defineConfig({
plugins: [cloudflare()],
});
Full documentation can be found here.
vite preview for previewing your build output in the Workers runtime prior to deployment