Skip to content

Commit

Permalink
fix: snippet hmr not working with rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 23, 2023
1 parent c231c13 commit a275049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdownToVue.ts
Expand Up @@ -70,7 +70,7 @@ export async function createMarkdownToVueRenderFn(
siteConfig?.rewrites.map[file.slice(srcDir.length + 1)]
file = alias ? path.join(srcDir, alias) : file
const relativePath = slash(path.relative(srcDir, file))
const cacheKey = JSON.stringify({ src, file })
const cacheKey = JSON.stringify({ src, file: fileOrig })

if (isBuild || options.cache !== false) {
const cached = cache.get(cacheKey)
Expand Down

0 comments on commit a275049

Please sign in to comment.