@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
0.1.21 is the newest release of 0.1.x.
In short
4 new3 fixed3 internal
Security
1 advisory affects 0.1.14; 1.6.0 fixes them
- ModerateCloudflare Vite plugin exposes secrets over the built-in dev serverGHSA-4pfg-2mw5-f8jx · 8 Jul 2025Fixed in 1.6.0
Release note
Patch Changes
Update vite-plugin to use the latest unenv-preset
Make sure
process.envis populated when thenodejs_compat_populate_process_envflag is setAdd support for
.wasm?initextension to load WebAssembly as documented by Vite (vite.dev/guide/features.html).Add
inspectorPortoption to plugin configadd an
inspectorPortoption that allows developers to start a devTools inspector server to debug their workers (defaulting to9229)Make
assetsfield optional in the Worker config when using assets. At build time, assets are included if there is a client build.Add
/__debugpath for better debuggingadd a new
/__debugpath that users can navigate to in order to debug their workersSupport 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.
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.