Minor Changes
-
#11879
5c8ff05Thanks @jamesopstad! - 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
-
#11898
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, 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,stoppable - kv-asset-handler:
mime - vite-plugin-cloudflare:
@remix-run/node-fetch-server,defu,get-port,picocolors,tinyglobby - vitest-pool-workers:
birpc,devalue,get-port,semver
- miniflare:
-
Updated dependencies [
e78186d,fe4faa3,fec8f5b,d39777f,4714ca1,c17e971,695b043]:- miniflare@4.20260114.0
- wrangler@4.59.2
- @cloudflare/unenv-preset@2.10.0