From a0d651d64dfd766157324fd86791da2168028cf2 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 06 Aug 2023 00:53:29 +0000
Subject: [PATCH] reverse query param hack to re-add sourcemap support

---
 quartz/bootstrap-cli.mjs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index d550aea..8b9bea9 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -298,14 +298,15 @@
       outfile: path.join("quartz", cacheFile),
       bundle: true,
       keepNames: true,
-      minify: true,
+      minifyWhitespace: true,
+      minifySyntax: true,
       platform: "node",
       format: "esm",
       jsx: "automatic",
       jsxImportSource: "preact",
       packages: "external",
       metafile: true,
-      sourcemap: "inline",
+      sourcemap: true,
       sourcesContent: false,
       plugins: [
         sassPlugin({
@@ -374,6 +375,7 @@
       }
 
       // bypass module cache
+      // https://github.com/nodejs/modules/issues/307
       const { default: buildQuartz } = await import(cacheFile + `?update=${randomUUID()}`)
       await buildQuartz(argv, clientRefresh)
       clientRefresh()

--
Gitblit v1.10.0