@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @cloudflare/vite-plugin From 0.1.15 to 0.1.21
6 releases in betweenevery note read
Security
1 advisory still affects 0.1.21
- Cloudflare Vite plugin exposes secrets over the built-in dev servermoderate · GHSA-4pfg-2mw5-f8jx
Upgrading to 1.6.0 clears it.
Release by release
- Fixed
No longer warn if the user sets
upload_source_mapsin the Worker config. - Fixed
Fix inspector port change being logged on server restarts. An available inspector port is now found on the initial server start and reused across restarts.
- Fixed
- New
Add validation for the
configPathoption in the plugin config that clearly indicates any issues. - Fixed
Ensure that Node.js polyfills are pre-optimized before the first request
- Fixed
Make sure that users can specify inspector port
0to use a random port - Fixed
Replace modules runtime checks with vite environment config validation
- Fixed
Make sure that the plugin keeps looking for available inspector ports by default
- New
- Fixed
Set the
x-forwarded-hostheader to the original host in requests. This fixes a bug where libraries such as Clerk would redirect to the workerd host rather than the Vite host.
- Fixed
- Fixed
Ensure that we don't crash when logging Node.js warnings when running in react-router builds
- Fixed
Show warning if the user has forgotten to turn on nodejs_compat
- Fixed
- Fixed
Fix a bug where updating config files would crash the dev server. This occurred because the previous Miniflare instance was not disposed before creating a new one. This would lead to a port collision because of the
inspectorPortintroduced by the new debugging features.
- Fixed
- New
Experimental: Add support for Workers Assets metafiles (_headers and _redirects) in
vite dev.
- New
15 internal lines (docs, tests, tooling) left out.
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.