From 5ccc2dcbba3bfeca2d9edc39209d43d217eb2a80 Mon Sep 17 00:00:00 2001
From: Sohum <31165513+ssmendon@users.noreply.github.com>
Date: Tue, 03 Dec 2024 09:52:51 +0000
Subject: [PATCH] fix(head): update open-graph width and height protocol per ogp (#1512)
---
quartz/worker.ts | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/quartz/worker.ts b/quartz/worker.ts
index eef4907..a209df9 100644
--- a/quartz/worker.ts
+++ b/quartz/worker.ts
@@ -1,18 +1,25 @@
+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 { Argv, BuildCtx } from "./util/ctx"
+import { FilePath, FullSlug } from "./util/path"
import { createFileParser, createProcessor } from "./processors/parse"
-
-const transformers = cfg.plugins.transformers
-const processor = createProcessor(transformers)
+import { options } from "./util/sourcemap"
// only called from worker thread
-export async function parseFiles(argv: Argv, fps: FilePath[], allSlugs: ServerSlug[]) {
+export async function parseFiles(
+ buildId: string,
+ argv: Argv,
+ fps: FilePath[],
+ allSlugs: FullSlug[],
+) {
const ctx: BuildCtx = {
+ buildId,
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