Parcel has a different but similar HMR API to Webpack. It should be possible to make ud support it too.
Instead of persisting data using the data object given to module.hot.dispose(data => { ... }), in Parcel we need to persist data into a Map keyed by module.id.