It’s tricky to work around, but the rescript doc site is using react router v7 with loaders and HMR works for the most part. There are a lot of files with multiple components that can be broken up, but changes to loaders works.
It would be nice to have exports live next to the value instead of all exported at the end as an object.