avibiton13
Results
2
comments of
avibiton13
Just found a better solution: 1. Canceling the changes to the `triggerHMR` function that I've mentioned above. 2. Updated code for the `src/js/server/index.ts` file: ``` import { http } from...
> I've just used Vite's [vite:beforeUpdate](https://vitejs.dev/guide/api-hmr.html#hot-on-event-cb) to close the server: > > ```ts > server = startServer(); > if (import.meta.hot) { > import.meta.hot.on('vite:beforeUpdate', () => { > server.close(); > })...