fix: pass buildId to worker

This commit is contained in:
Jacky Zhao 2024-08-08 19:33:27 -07:00
parent e89c395f7c
commit 195fc5134c
2 changed files with 8 additions and 2 deletions
quartz

View file

@ -7,8 +7,14 @@ import { createFileParser, createProcessor } from "./processors/parse"
import { options } from "./util/sourcemap"
// only called from worker thread
export async function parseFiles(argv: Argv, fps: FilePath[], allSlugs: FullSlug[]) {
export async function parseFiles(
buildId: string,
argv: Argv,
fps: FilePath[],
allSlugs: FullSlug[],
) {
const ctx: BuildCtx = {
buildId,
cfg,
argv,
allSlugs,