Skip to content

Commit

Permalink
fix(regression): hmr not working with markdown includes due to wrong …
Browse files Browse the repository at this point in the history
…cache key

closes #4289
closes #4303
  • Loading branch information
brc-dd committed Oct 29, 2024
1 parent acfe97f commit 615aed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down

0 comments on commit 615aed5

Please sign in to comment.