I'm developing a node.js application, using Sveltekit + vite.
I have a file, where I attach event-listeners.
When I change the specific file, a new listener is attached but the old one is still active.
Is it possible somehow to hook into the Vite page reload life-cycle?
I currently tried to listen for proceess.on('SIGINT|'SIGTERM'|'SIGHUP'), but that did not help.

