From a2750492be7869ed48a5bde1ffbc177093356758 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 24 Sep 2023 00:57:53 +0530 Subject: [PATCH] fix: snippet hmr not working with rewrites --- src/node/markdownToVue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/markdownToVue.ts b/src/node/markdownToVue.ts index ccb0872f..891ff56d 100644 --- a/src/node/markdownToVue.ts +++ b/src/node/markdownToVue.ts @@ -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)