@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.2M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
1 new1 fixed3 internal
Release note
Minor Changes
Infer
upload_source_mapssetting in the output Worker config from thebuild.sourcemapsetting in the Vite config.If build.sourcemap is enabled for a Worker environment, as in the following example,
"upload_source_maps": truewill now automatically be added to the outputwrangler.jsonfile.
This removes the need to additionally specify theupload_source_mapsproperty in the input Worker config.export default defineConfig({ environments: { my_worker: { build: { sourcemap: true, }, }, }, plugins: [cloudflare()], });Note that if
upload_source_mapsis set in the input Worker config, this value will take precedence.
This makes it possible to generate source maps without uploading them.
Patch Changes
Provide proxy shared secret to Miniflare so that the Worker receives the original Host header
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.