Skip to content

Commit

Permalink
fix hmr
Browse files Browse the repository at this point in the history
  • Loading branch information
edivados committed Sep 25, 2023
1 parent fc52fd2 commit d3b8eed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vinxi/lib/plugins/fs-watcher.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { fileURLToPath } from "node:url";
import { normalize } from "pathe";

/**
*
Expand Down Expand Up @@ -43,7 +44,7 @@ export const fileSystemWatcher = () => {
config.router.internals.routes.addEventListener("reload", () => {
const { moduleGraph } = server;
const mods = moduleGraph.getModulesByFile(
fileURLToPath(new URL("../routes.js", import.meta.url)),
normalize(fileURLToPath(new URL("../routes.js", import.meta.url))),
);
if (mods) {
const seen = new Set();
Expand Down

0 comments on commit d3b8eed

Please sign in to comment.