From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)

---
 quartz/util/trace.ts |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/quartz/util/trace.ts b/quartz/util/trace.ts
index c7f3cc3..9cdc2ee 100644
--- a/quartz/util/trace.ts
+++ b/quartz/util/trace.ts
@@ -1,26 +1,22 @@
-import chalk from "chalk"
+import { styleText } from "util"
 import process from "process"
 import { isMainThread } from "workerpool"
 
 const rootFile = /.*at file:/
 export function trace(msg: string, err: Error) {
-  const stack = err.stack
+  let stack = err.stack ?? ""
 
   const lines: string[] = []
 
   lines.push("")
   lines.push(
     "\n" +
-      chalk.bgRed.black.bold(" ERROR ") +
-      "\n" +
-      chalk.red(` ${msg}`) +
+      styleText(["bgRed", "black", "bold"], " ERROR ") +
+      "\n\n" +
+      styleText("red", ` ${msg}`) +
       (err.message.length > 0 ? `: ${err.message}` : ""),
   )
 
-  if (!stack) {
-    return
-  }
-
   let reachedEndOfLegibleTrace = false
   for (const line of stack.split("\n").slice(1)) {
     if (reachedEndOfLegibleTrace) {

--
Gitblit v1.10.0