Merge branch 'main' into chore/vite-3

pull/1136/head
Divyansh Singh 3 years ago committed by GitHub
commit c7bedfa10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,8 +44,9 @@ export async function createMarkdownToVueRenderFn(
): Promise<MarkdownCompileResult> => {
const relativePath = slash(path.relative(srcDir, file))
const dir = path.dirname(file)
const cacheKey = JSON.stringify({ src, file })
const cached = cache.get(src)
const cached = cache.get(cacheKey)
if (cached) {
debug(`[cache hit] ${relativePath}`)
return cached
@ -154,7 +155,7 @@ export async function createMarkdownToVueRenderFn(
deadLinks,
includes
}
cache.set(src, result)
cache.set(cacheKey, result)
return result
}
}

Loading…
Cancel
Save