@cloudflare/vite-plugin@1.45.0
Minor Changes
-
#14652
317ce1fThanks @jamesopstad! - Append Workers runtime types to the generated types when usingexperimental.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
-
#14588
eb99ab1Thanks @emily-shen! - fix: Respect auth profiles when using remote bindings in the Vite pluginAuth 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.
-
#14645
cbdd107Thanks @jamesopstad! - Fix load time crash on Node.js versions earlier than 22.15The 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. -
Updated dependencies [
7692a61,ed33326,018574b,eb99ab1,cdf3148,7692a61,7692a61,3015320,899c297,9da77ac,317ce1f]:- miniflare@4.20260710.0
- wrangler@4.111.0