From f1c9ca495e450ecb62dade70c4b60d86e106f79c Mon Sep 17 00:00:00 2001
From: vintro <77507980+vintrocode@users.noreply.github.com>
Date: Mon, 14 Aug 2023 00:19:50 +0000
Subject: [PATCH] docs: note about existing content at same path on different branches

---
 quartz/worker.ts |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

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

--
Gitblit v1.10.0