@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()3 Replies
vite-plugin-pwa breaks in particular:
Entry module
__CLOUDFLARE_MODULE__Text__/Users/xxx/dev/project/apps/frontend/index.html__cannot be external.@lauri Oh no! Could you file a bug report in our workers-sdk repo about your issue? We'll get it triaged right away: https://github.com/cloudflare/workers-sdk/issues
GitHub
Issues · cloudflare/workers-sdk
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - Issues · cloudflare/workers-sdk
I would have done it, but a bit tricky to create a minimal reproduction. Will look into it when I have some time.