@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
1 new2 fixed2 internal
Release note
Minor Changes
Append Workers runtime types to the generated types when using
experimental.newConfig, with a newtypes.includeRuntimeoptionWhen using the experimental new config (
cloudflare.config.ts), the plugin now appends the Workers runtime types (generated from your compatibility date and flags) toworker-configuration.d.ts, alongside the types inferred from your config. This is controlled by a newexperimental.newConfig.types.includeRuntimeoption, which defaults totrue.As part of this change, types are now generated only during
vite dev(notvite build), since compatibility settings are resolved from the active dev session. This affects the experimental new config path only.
Patch Changes
Respect auth profiles when using remote bindings in the Vite plugin
Auth profiles (configured via
wrangler auth createandwrangler auth activate) were previously being ignored when using remote bindings with the Vite plugin. This is now fixed.Note that the profile directory is resolved based on the Vite project root.
Fix load time crash on Node.js versions earlier than 22.15
The plugin eagerly imported
registerHooksfromnode:module, which only exists on Node.js v22.15.0+.registerHooksis now read lazily, meaning that missing support is only surfaced when usingexperimental.newConfig.
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.