miniflare icon indicating copy to clipboard operation
miniflare copied to clipboard

Does Miniflare support webpack HMR on server-side?

Open wellyshen opened this issue 2 years ago β€’ 1 comments

Thank you for this awesome library, I have been migrating a React SSR project from the Node.js server to Miniflare. On client-side, after I turned on the globalAsyncIO and globalTimers the webpack HMR worked but on the server-side, the HMR didn't and throws the following error. I use Webpack HMR API for the server-side modules, which can work on the Node.js server. Do you have any suggestions for that? Thanks.

ζˆͺεœ– 2022-04-23 δΈ‹εˆ1 19 07

wellyshen avatar Apr 22 '22 13:04 wellyshen

Hey! πŸ‘‹ Thanks for raising this. Not very familiar with server-side HMR unfortunately but sounds very cool and useful. I'm pretty busy the next few weeks with exams, but will try look into this soon. πŸ‘

mrbbot avatar May 20 '22 21:05 mrbbot

Hey! πŸ‘‹ I'm going to close this as it's unlikely we'll have time to fix this in Miniflare 2. Our development effort is primarily focused on version 3. We're investigating HMR in Wrangler and Miniflare 3 with Vite, but aren't able to commit to support at the moment.

mrbbot avatar Nov 07 '23 15:11 mrbbot