(fix): broken connections
Some checks failed
CI / checks (push) Failing after 5m37s

This commit is contained in:
Alois 2026-07-27 21:37:41 +02:00
commit 10c862de59
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
3 changed files with 15 additions and 7 deletions

View file

@ -450,11 +450,7 @@ export function mtp(options: MTPVitePluginOptions): VitePlugin {
rebuildTimer = null;
void (async () => {
try {
await buildIfNeeded(state, true);
server.moduleGraph.invalidateAll();
if (server.ws) {
server.ws.send({ type: "full-reload" });
}
await server.restart();
} catch (error) {
server.config.logger.error(
error instanceof Error ? error.message : String(error),