From 4a28d0e5d1b8fa866d0594a89ad72a751633dc8c Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 13 Feb 2024 05:21:13 +0000
Subject: [PATCH] chore(deps-dev): bump tsx from 4.7.0 to 4.7.1 (#859)
---
quartz/build.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/quartz/build.ts b/quartz/build.ts
index ed166bb..452a2f1 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -203,8 +203,9 @@
const emitterGraph =
(await emitter.getDependencyGraph?.(ctx, processedFiles, staticResources)) ?? null
- // emmiter may not define a dependency graph. nothing to update if so
- if (emitterGraph) {
+ // only update the graph if the emitter plugin uses the changed file
+ // eg. Assets plugin ignores md files, so we skip updating the graph
+ if (emitterGraph?.hasNode(fp)) {
// merge the new dependencies into the dep graph
dependencies[emitter.name]?.updateIncomingEdgesForNode(emitterGraph, fp)
}
--
Gitblit v1.10.0