@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
3 fixed2 internal
Release note
Patch Changes
Stop the update check from recommending deprecated versions
Previously, the "update available" notice shown by
wranglerand@cloudflare/vite-pluginalways pointed at whichever version was taggedlateston npm, even after that version had been deprecated for shipping a bug. Deprecated versions are now never recommended: if the latest release has been deprecated, the newest non-deprecated stable release below it is suggested instead, or nothing at all if you are already on it.The check now reads the npm registry directly instead of going through the
update-checkpackage, which discarded the deprecation information. The on-disk cache location and one-hour refresh interval are unchanged.Ship
usingandawait usingdeclarations to the runtime as writtenWorker builds no longer lower explicit resource management into helper code, so Workers that use it ship about 1.7 KB less. workerd supports the syntax natively. On Vite 8 the plugin builds Workers at an
es2026target, so Oxc leaves the syntax alone. On Vite 6 and 7, where esbuild has noes2026target, the Worker environments tell esbuild thatusingis supported instead. Client builds keep their own targets: the plugin changes only the Worker environments.Honor the source-map setting in release builds
Omit the plugin's JavaScript and declaration source maps when building with
SOURCEMAPS=false, reducing the installed package size. Normal development builds keep source maps, and application source-map settings are unchanged.
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.