Packages

@cloudflare/vite-plugin

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

Your version

1.30.1

24 Mar 2026Where it was published

1.70.1 is the newest release of 1.x.

In short

1 fixed2 internal

Release note

Patch Changes

  • Fix a bug that prevented using subpath imports for additional module types

    You can now use subpath imports for additional module types (.html, .txt, .sql, .bin, .wasm) by defining them in your package.json imports field:

    // package.json
    {
      "imports": {
        "#templates/page": "./src/templates/page.html"
      }
    }
    import page from "#templates/page";
    
    export default {
      fetch() {
        return new Response(page, {
          headers: { "Content-Type": "text/html" },
        });
      },
    } satisfies ExportedHandler;

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.