Merge branch 'chore/vite-3' into feature/mermaid

pull/930/head
Urata Daiki 3 years ago committed by GitHub
commit e56aaa7ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,7 @@
"body-scroll-lock": "^4.0.0-beta.0", "body-scroll-lock": "^4.0.0-beta.0",
"mermaid": "^9.1.3", "mermaid": "^9.1.3",
"shiki": "^0.10.1", "shiki": "^0.10.1",
"vite": "^3.0.0-beta.8", "vite": "^3.0.0-beta.9",
"vue": "^3.2.37" "vue": "^3.2.37"
}, },
"devDependencies": { "devDependencies": {

File diff suppressed because it is too large Load Diff

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

Loading…
Cancel
Save