Skip to content

Commit 615aed5

Browse files
committed
fix(regression): hmr not working with markdown includes due to wrong cache key
closes #4289 closes #4303
1 parent acfe97f commit 615aed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export async function createVitePressPlugin(
431431
return [
432432
...modules,
433433
...importers.map((id) => {
434-
clearCache(id)
434+
clearCache(slash(path.relative(srcDir, id)))
435435
return server.moduleGraph.getModuleById(id)
436436
})
437437
].filter(Boolean) as ModuleNode[]

0 commit comments

Comments
 (0)