From e47c29d2fd4eae06c511c914e2a5fcb057b44d7b Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Aug 2024 21:14:29 +0000
Subject: [PATCH] chore(deps): bump rehype-katex from 7.0.0 to 7.0.1 (#1356)

---
 quartz/worker.ts |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/quartz/worker.ts b/quartz/worker.ts
index de5868a..a209df9 100644
--- a/quartz/worker.ts
+++ b/quartz/worker.ts
@@ -1,17 +1,25 @@
-import config from "../quartz.config"
-import { FilePath, ServerSlug } from "./path"
+import sourceMapSupport from "source-map-support"
+sourceMapSupport.install(options)
+import cfg from "../quartz.config"
+import { Argv, BuildCtx } from "./util/ctx"
+import { FilePath, FullSlug } from "./util/path"
 import { createFileParser, createProcessor } from "./processors/parse"
-
-const transformers = config.plugins.transformers
-const processor = createProcessor(transformers)
+import { options } from "./util/sourcemap"
 
 // only called from worker thread
 export async function parseFiles(
-  baseDir: string,
+  buildId: string,
+  argv: Argv,
   fps: FilePath[],
-  allSlugs: ServerSlug[],
-  verbose: boolean,
+  allSlugs: FullSlug[],
 ) {
-  const parse = createFileParser(transformers, baseDir, fps, allSlugs, verbose)
+  const ctx: BuildCtx = {
+    buildId,
+    cfg,
+    argv,
+    allSlugs,
+  }
+  const processor = createProcessor(ctx)
+  const parse = createFileParser(ctx, fps)
   return parse(processor)
 }

--
Gitblit v1.10.0