@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
Add support for child environments.
This is to support React Server Components via @vitejs/plugin-rsc and frameworks that build on top of it. A
childEnvironmentsoption is now added to the plugin config to enable using multiple environments within a single Worker. The parent environment can import modules from a child environment in order to access a separate module graph. For a typical RSC use case, the plugin might be configured as in the following example:export default defineConfig({ plugins: [ cloudflare({ viteEnvironment: { name: "rsc", childEnvironments: ["ssr"], }, }), ], });
Patch Changes
Bundle more third-party dependencies to reduce supply chain risk
Previously, several small utility packages were listed as runtime dependencies and
installed separately. These are now bundled directly into the published packages,
reducing the number of external dependencies users need to trust.Bundled dependencies:
miniflare:
acorn,acorn-walk,exit-hook,glob-to-regexp,stoppablekv-asset-handler:
mimevite-plugin-cloudflare:
@remix-run/node-fetch-server,defu,get-port,picocolors,tinyglobbyvitest-pool-workers:
birpc,devalue,get-port,semver
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.