chore(build): separate markdown and html handling into two separate stages (#1675)

This commit is contained in:
Anton Bulakh
2025-01-07 22:33:34 +02:00
committed by GitHub
parent b7a945e034
commit c90dbacab0
4 changed files with 103 additions and 37 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env node
import workerpool from "workerpool"
const cacheFile = "./.quartz-cache/transpiled-worker.mjs"
const { parseFiles } = await import(cacheFile)
const { parseMarkdown, processHtml } = await import(cacheFile)
workerpool.worker({
parseFiles,
parseMarkdown,
processHtml,
})