flarelabs-net / vite-plugin-cloudflare

12 stars 1 forks source link

Add initial support for Workers Assets #36

Open jamesopstad opened 4 weeks ago

bjankord commented 4 weeks ago

Really interested in this functionality for use with a User Worker (for APIs) + an Asset Worker (for single page app) to have a "Full Stack" edge app with HMR support while running wrangler dev locally.

I think if you all can get this working, where a developer could essentially run their single page app via wrangler dev and it supports HMR changes to the SPA and/or APIs in the user worker code that the SPA would call, this unlocks a MASSIVE developer experience win and will make developing full stack Cloudflare worker apps a lot more appealing to developers.

jamesopstad commented 4 weeks ago

Great! That's exactly one of the scenarios that we're hoping to support. Only difference is you'd run vite dev rather than wrangler dev.