@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 new1 fixed3 internal
Security
Fixes 1 advisory that affected 1.5.1
- ModerateCloudflare Vite plugin exposes secrets over the built-in dev serverGHSA-4pfg-2mw5-f8jx · 8 Jul 2025Fixed in 1.6.0
Release note
Minor Changes
Enhanced build support for Workers with assets.
Assets that are imported in the entry Worker are now automatically moved to the client build output. This enables importing assets in your Worker and accessing them via the assets binding. See Static Asset Handling to find out about all the ways you can import assets in Vite.
Additionally, a broader range of build scenarios are now supported. These are:
Assets only build with client entry/entries
Assets only build with no client entry/entries that includes
publicdirectory assetsWorker(s) + assets build with client entry/entries
Worker(s) + assets build with no client entry/entries that includes imported and/or
publicdirectory assetsWorker(s) build with no assets
Patch Changes
Ensure that .dev.vars files cannot be accessed via the dev server or preview server.
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.