I'm wondering if there is a simple way to use Vite's Hot Module Replacement for a development server in Node.js (without using Express or any other framework, just plain Node.js). Just like webpack HMR with Nest.js.
The documentation of Vite isn't too helpful in case of backend HMR.
I have searched many packages like vite-plugin-node but these require writing special adapters and installing additional packages.
Can I use Vite's HMR with Node.js for backend code, without installing any third-party packages / plugins? How to configure Vite for that?
Additional information:
- I'm using TypeScript