Packages

@cloudflare/vite-plugin

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

Upgrading @cloudflare/vite-plugin From 0.1.7 to 0.1.21

14 releases in betweenevery note read

Other targets from 0.1.7Clears its advisory1.6.0Latest1.70.1
  1. 0.1.7yours
  2. 13 releases
  3. 0.1.21target
0
changes to make
0
advisories fixed
11
new
16
fixes

Security

1 advisory still affects 0.1.21

Upgrading to 1.6.0 clears it.

Release by release

  1. 0.1.21

    4 Apr 20252 fixes
    • Fixed

      No longer warn if the user sets upload_source_maps in the Worker config.

    • Fixed

      Fix inspector port change being logged on server restarts. An available inspector port is now found on the initial server start and reused across restarts.

  2. 0.1.20

    2 Apr 20251 new · 4 fixes
    • New

      Add validation for the configPath option in the plugin config that clearly indicates any issues.

    • Fixed

      Ensure that Node.js polyfills are pre-optimized before the first request

    • Fixed

      Make sure that users can specify inspector port 0 to use a random port

    • Fixed

      Replace modules runtime checks with vite environment config validation

    • Fixed

      Make sure that the plugin keeps looking for available inspector ports by default

  3. 0.1.19

    28 Mar 20251 fix
    • Fixed

      Set the x-forwarded-host header to the original host in requests. This fixes a bug where libraries such as Clerk would redirect to the workerd host rather than the Vite host.

  4. 0.1.18

    27 Mar 20252 fixes
    • Fixed

      Ensure that we don't crash when logging Node.js warnings when running in react-router builds

    • Fixed

      Show warning if the user has forgotten to turn on nodejs_compat

  5. 0.1.17

    26 Mar 20251 fix
    • Fixed

      Fix a bug where updating config files would crash the dev server. This occurred because the previous Miniflare instance was not disposed before creating a new one. This would lead to a port collision because of the inspectorPort introduced by the new debugging features.

  6. 0.1.16

    26 Mar 20251 new
    • New

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

  7. 0.1.15

    22 Mar 20251 new · 2 fixes
    • New

      Add support for assets_navigation_prefer_asset_serving in Vite (dev and preview)

    • Fixed

      Export PluginConfig type

    • Fixed

      Make sure that internal variables are not exposed in the importable env object

  8. 0.1.14

    20 Mar 20254 new · 3 fixes
    • New

      Add support for .wasm?init extension to load WebAssembly as documented by Vite (vite.dev/guide/features.html).

    • New

      Add inspectorPort option to plugin config

    • New

      Add /__debug path for better debugging

    • New

      Support Text and Data module types. Text modules can be imported with a .txt or .html extension while Data modules can be imported with a .bin extension. This expands on the existing support for WebAssembly modules, which can now be imported with .wasm or .wasm?module extensions. Custom rules are not supported. More info on including non-JavaScript modules can be found here.

    • Fixed

      Update vite-plugin to use the latest unenv-preset

    • Fixed

      Make sure process.env is populated when the nodejs_compat_populate_process_env flag is set

    • Fixed

      Make assets field optional in the Worker config when using assets. At build time, assets are included if there is a client build.

38 internal lines (docs, tests, tooling) left out.

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.