Skip to content

Commit a275049

Browse files
committedSep 23, 2023
fix: snippet hmr not working with rewrites
1 parent c231c13 commit a275049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/markdownToVue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function createMarkdownToVueRenderFn(
7070
siteConfig?.rewrites.map[file.slice(srcDir.length + 1)]
7171
file = alias ? path.join(srcDir, alias) : file
7272
const relativePath = slash(path.relative(srcDir, file))
73-
const cacheKey = JSON.stringify({ src, file })
73+
const cacheKey = JSON.stringify({ src, file: fileOrig })
7474

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

0 commit comments

Comments
 (0)
Please sign in to comment.