@cloudflare/vite-plugin@1.48.0
📦 cloudflare-workersView on GitHub →
✨ 1 features🐛 3 fixes🔧 2 symbols
Summary
This release includes a new experimental feature to serve bundled client HTML in development when Vite's `experimental.bundledDev` is enabled. It also addresses several bugs related to WebSocket upgrades, Vite compatibility, and module transport failures.
Migration Steps
- When Vite's `experimental.bundledDev` is enabled, the dev server's resource teardown has been patched. This will be replaced with first-class APIs when they are added to Vite (see https://github.com/vitejs/vite/issues/22913).
✨ New Features
- Serve the bundled client HTML in dev when Vite's `experimental.bundledDev` is enabled.
🐛 Bug Fixes
- Destroy the client socket instead of crashing when a WebSocket upgrade fails, preventing unhandled rejections and socket leaks.
- Fix compatibility with Vite's `experimental.bundledDev` option by keeping Miniflare, containers, and tunnels alive when a build runs in dev. Resources are now torn down from a patched `server.close`.
- Retry transient module-transport failures in the runner worker up to three times to prevent caching rejections and subsequent request failures for affected modules.