#Vite HMR for circular deps

1 messages · Page 1 of 1 (latest)

next timber
#

Prior to v5, Vite HMR was working despite having cyclic dependencies. Unfortunately it now does not support this anymore resulting in quite some negative reactions (https://github.com/vitejs/vite/issues/10208#issuecomment-1823051931). Is there a way to manually apply HMR on circular deps via a plugin?

GitHub

Description Previously in #2314, we've decided that HMR will not handle cyclic dependencies and instead reload the entire app, and we think that's the only way that it's correct. Howeve...

analog gyro
#

Perhaps you can try the Vite 5.1 beta, it improves on the HMR for circular deps, which should work like prior to v5