Cloudflare DevelopersCD
Cloudflare Developers9mo ago
3 replies
lauri

@cloudflare/vite-plugin breaks vite build

We have a custom setup with vite+react. Everything works great in dev, but when we build with the cloudflare plugin enabled, it turns our SPA build into an SSR build or a like (spawns 3-4 parallel build processes, which break some other plugins)

Conditionally enabling the cloudflare plugin in development helps, but we're wondering if it removes any build processing as a result? At first glance the deployment seems to work great.
mode === "development" && cloudflare()
Was this page helpful?