function setupWatcher(watcher, routes) {
	watcher.on("unlink", (path) => routes.removeRoute(path));
	watcher.on("add", (path) => routes.addRoute(path));
	watcher.on("change", (path) => routes.updateRoute(path));
}
@param {import('vite').FSWatcher} watcher
@param {import("../router-modes.js").CompiledRouter} routes