Webpack HMR and jQuery

How to write Javascript code with jQuery and HMR?
I don’t know how to benefit from Webpack + HMR Sage build when using jQuery. Most of the code requires document “ready” event to be executed/updated which is not triggered by HMR, so despite using current Webpack build I have to manually reload a page. If there is no other option I would rather add *.js files to the watched files and trigger an automatic page reload like in case of *.php.

As far as I know, you need to add your jquery scripts to the reload list for jquery as there is no way to re-initiate the domready event.

I personally am trying to move away from jQuery and use more frameworks that properly support HMR (in my case, I choose VueJs, but it’s a matter of personal preference!)