Skip to content

Commit 4114674

Browse files
committed
fix(hmr): avoid relying on revertd vite hmr behavior
1 parent 773472d commit 4114674

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/node/plugin.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,8 @@ export function createVitePressPlugin(
266266
}
267267
})
268268

269-
// reload the content component
270-
return vuePlugin.handleHotUpdate!({
271-
...ctx,
272-
read: () => vueSrc
273-
})
269+
// overwrite src so vue plugin can handle the HMR
270+
ctx.read = () => vueSrc
274271
}
275272
}
276273
}

0 commit comments

Comments
 (0)