@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
2 new2 fixed3 internal
Release note
Minor Changes
We now automatically inject the following HMR code into your Worker entry file:
if (import.meta.hot) { import.meta.hot.accept(); }This prevents file changes from invalidating the full module graph and improves HMR performance in development.
Patch Changes
Resolve
containers.image(if it is a path to a Dockerfile) to an absolute path in the deploy config.Set
build.rollupOptions.platform: "neutral"on rolldown-vite to prevent Rolldown'snode:modulebasedrequirepolyfill from breaking the build.vite-plugin: Add containers support in
vite devAdds support for Cloudflare Containers in
vite dev. Please note that at the time of this PR a container image can only specify the path to aDockerfile. Support for registry links will be added in a later version, as will containers support invite preview.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.