From cebe96d74d1b0738e3ea1f1f10503c69fb758bef Mon Sep 17 00:00:00 2001 From: arne Date: Wed, 12 Aug 2026 01:20:07 +0200 Subject: [PATCH] Remove `pprint` Reduces build size from 350.42 KB to 231.41 KB (85.61 KB to 58.58 KB gzip'ed) --- src/computersandblues/lodestone/app.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/computersandblues/lodestone/app.cljs b/src/computersandblues/lodestone/app.cljs index 0919ea2..49bc18f 100644 --- a/src/computersandblues/lodestone/app.cljs +++ b/src/computersandblues/lodestone/app.cljs @@ -2,7 +2,6 @@ (:require [reagent.core :as r] [reagent.dom.client :as rd] [clojure.string :as str] - [clojure.pprint :as pprint] [computersandblues.lodestone.database :as db] [computersandblues.lodestone.interop :refer [promise-all promise-resolve promise-reject]] [computersandblues.lodestone.match :refer [query->matching-xform]] @@ -334,7 +333,7 @@ (let [pprinted (r/atom nil) pprint (fn [_] (when-not @pprinted - (reset! pprinted (with-out-str (pprint/pprint obj)))))] + (reset! pprinted (pr-str obj))))] (fn [] [:details.debug {:on-toggle pprint :on-mouseover pprint}