Packages

@cloudflare/vite-plugin

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

Your version

1.10.0

22 Jul 2025Where it was published

1.70.1 is the newest release of 1.x.

In short

2 new2 fixed3 internal

Release note

Minor Changes

  • We now automatically inject the following HMR code into your Worker entry file:

    if (import.meta.hot) {
        import.meta.hot.accept();
    }

    This prevents file changes from invalidating the full module graph and improves HMR performance in development.

Patch Changes

  • Resolve containers.image (if it is a path to a Dockerfile) to an absolute path in the deploy config.

  • Set build.rollupOptions.platform: "neutral" on rolldown-vite to prevent Rolldown's node:module based require polyfill from breaking the build.

  • vite-plugin: Add containers support in vite dev

    Adds support for Cloudflare Containers in vite dev. Please note that at the time of this PR a container image can only specify the path to a Dockerfile. Support for registry links will be added in a later version, as will containers support in vite preview.

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.