Packages

@cloudflare/vite-plugin

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

Your version

0.1.16

26 Mar 2025Where it was published

0.1.21 is the newest release of 0.1.x.

In short

1 new3 internal

Security

1 advisory affects 0.1.16; 1.6.0 fixes them

Release note

Patch Changes

  • Experimental: Add support for Workers Assets metafiles (_headers and _redirects) in vite dev.

    Experimental feature: This feature is being made available behind an experimental option (headersAndRedirectsDevModeSupport) in the cloudflare plugin configuration. It could change or be removed at any time.

    cloudflare({
        // ...
        experimental: { headersAndRedirectsDevModeSupport: true },
    }),

    Currently, in this experimental mode, requests that would result in an HTML response or a 404 response will take into account the _headers and _redirects settings.

    Known limitation: requests for existing static assets will be served directly by Vite without considering the _headers or _redirects settings.

    Production deployments or using vite preview already accurately supports the _headers and _footers features. The recommendation is to use vite preview for local testing of these settings.

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.