@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.2M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
3 new3 fixed3 internal
Release note
Minor Changes
Expose a new
getLocalWorkerdCompatibilityDateutility that allows callers to get the compatibility date of the locally installedworkerdpackage.Add a post
buildApphook that builds Worker environments that haven't already been built.This ensures that auxiliary Workers are included in the build when using full-stack frameworks that define their own
builder.buildAppfunction. Note that this feature is not supported with Vite 6 as thebuildApphook was introduced in Vite 7.Add default
Textmodule rule for.sqlfiles.This enables importing
.sqlfiles directly in Wrangler and the Cloudflare Vite plugin without extra configuration.
Patch Changes
Set
ignoreOutdatedRequeststotrueinoptimizeDepsconfig.This is a workaround for #20867 and will resolve
Error: There is a new version of the pre-bundle for ...errors that some users are experiencing. The longer term solution is to use full-bundle mode rather thanoptimizeDepsonce it is supported for server environments. Vite v7.3.1 or above is needed for this change to take effect.Remove
topLevelNameandnamewhen passingentryWorkerConfigto theconfigfunction for auxiliary Workers.The
namefor each Worker should be unique and thetopLevelNameis computed rather than provided directly.Regression where plain class and object types were no longer supported as Durable Objects and Worker entrypoints
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.