From 9cd072bfc336f3eeb453c279dc3953e2a7e3d9fd Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 02 Oct 2024 08:41:50 +0000
Subject: [PATCH] chore(deps): bump hast-util-to-string from 3.0.0 to 3.0.1 (#1466)

---
 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