@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @cloudflare/vite-plugin From 0.1.12 to 0.1.21
9 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
- New
Add support for
assets_navigation_prefer_asset_servingin Vite (devandpreview) - Fixed
Export
PluginConfigtype - Fixed
Make sure that internal variables are not exposed in the importable
envobject
- New
- New
Add support for
.wasm?initextension to load WebAssembly as documented by Vite (vite.dev/guide/features.html). - New
Add
inspectorPortoption to plugin config - New
Add
/__debugpath for better debugging - New
Support Text and Data module types. Text modules can be imported with a
.txtor.htmlextension while Data modules can be imported with a.binextension. This expands on the existing support for WebAssembly modules, which can now be imported with.wasmor.wasm?moduleextensions. Custom rules are not supported. More info on including non-JavaScript modules can be found here. - Fixed
Update vite-plugin to use the latest unenv-preset
- Fixed
Make sure
process.envis populated when thenodejs_compat_populate_process_envflag is set - Fixed
Make
assetsfield optional in the Worker config when using assets. At build time, assets are included if there is a client build.
- New
24 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.