@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()
1 Reply
lauri
lauriOP10h ago
vite-plugin-pwa breaks in particular: Entry module __CLOUDFLARE_MODULE__Text__/Users/xxx/dev/project/apps/frontend/index.html__cannot be external.

Did you find this page helpful?