Remove pprint

Reduces build size from 350.42 KB to 231.41 KB (85.61 KB to 58.58 KB gzip'ed)
This commit is contained in:
arne 2026-08-12 01:20:07 +02:00
commit cebe96d74d

View file

@ -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}