github cloudflare/workers-sdk @cloudflare/vite-plugin@1.6.0

Minor Changes

  • #9510 590d69b Thanks @jamesopstad! - Enhanced build support for Workers with assets.

    Assets that are imported in the entry Worker are now automatically moved to the client build output. This enables importing assets in your Worker and accessing them via the assets binding. See Static Asset Handling to find out about all the ways you can import assets in Vite.

    Additionally, a broader range of build scenarios are now supported. These are:

    • Assets only build with client entry/entries
    • Assets only build with no client entry/entries that includes public directory assets
    • Worker(s) + assets build with client entry/entries
    • Worker(s) + assets build with no client entry/entries that includes imported and/or public directory assets
    • Worker(s) build with no assets

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.