fix(regression): hmr not working with markdown includes due to wrong cache key

closes #4289
closes #4303
pull/4323/head
Divyansh Singh 4 weeks ago
parent acfe97f608
commit 615aed5df7

@ -431,7 +431,7 @@ export async function createVitePressPlugin(
return [
...modules,
...importers.map((id) => {
clearCache(id)
clearCache(slash(path.relative(srcDir, id)))
return server.moduleGraph.getModuleById(id)
})
].filter(Boolean) as ModuleNode[]

Loading…
Cancel
Save