Is it feasible to enable HMR in a production build?
I know that currently HMR is gated on __DEV__
but on a cursory look it seems that it would take very little change to enable it in prod (basically have the renderer call registerHMR and unregisterHMR). So my question is whether there are some dependencies that are not immediately obvious.
The motivation is that I have a dashboard implemented in Vue and users can write new widgets (visualizations) live in the dashboard. They are Vue components that get dynamically loaded. When users edit their widget it gets hot-updated. I can make it happen without the HMR API but using the API would make it more powerful and more seamless. (There is no Vite or vue-cli anywhere in sight.)