Packages

@cloudflare/vite-plugin

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

Your version

1.20.0

7 Jan 2026Where it was published

1.70.1 is the newest release of 1.x.

In short

3 new3 fixed3 internal

Release note

Minor Changes

  • Expose a new getLocalWorkerdCompatibilityDate utility that allows callers to get the compatibility date of the locally installed workerd package.

  • Add a post buildApp hook that builds Worker environments that haven't already been built.

    This ensures that auxiliary Workers are included in the build when using full-stack frameworks that define their own builder.buildApp function. Note that this feature is not supported with Vite 6 as the buildApp hook was introduced in Vite 7.

  • Add default Text module rule for .sql files.

    This enables importing .sql files directly in Wrangler and the Cloudflare Vite plugin without extra configuration.

Patch Changes

  • Set ignoreOutdatedRequests to true in optimizeDeps config.

    This is a workaround for #20867 and will resolve Error: There is a new version of the pre-bundle for ... errors that some users are experiencing. The longer term solution is to use full-bundle mode rather than optimizeDeps once it is supported for server environments. Vite v7.3.1 or above is needed for this change to take effect.

  • Remove topLevelName and name when passing entryWorkerConfig to the config function for auxiliary Workers.

    The name for each Worker should be unique and the topLevelName is computed rather than provided directly.

  • Regression where plain class and object types were no longer supported as Durable Objects and Worker entrypoints

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.