Packages

@cloudflare/vite-plugin

1.70.1 · 19 Nov 2026MIT12.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.21.0

15 Jan 2026Where it was published

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 childEnvironments option 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, 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

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.