From 5b3a3acb5433a80b0e7560b559b050693115e018 Mon Sep 17 00:00:00 2001 From: Jeroen van Dijk <27645+jeroenvandijk@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:18:10 +0200 Subject: [PATCH] Enable source maps (#138) * Enable source maps * Update changelog --- CHANGELOG.md | 2 ++ shadow-cljs.edn | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73bd8b8..ddde1f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ +- [#114](https://github.com/babashka/scittle/issues/114): Enable source maps ([@jeroenvandijk](https://github.com/jeroenvandijk)) + ## v0.7.28 (2025-09-13) - [#137](https://github.com/babashka/scittle/issues/137): fix JS interop with reserved JS keyword (incorrectly munged) by bumping SCI diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 7b6d8c4..4b0d654 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -6,10 +6,13 @@ :builds {:main - {;; for dev build - #_#_:compiler-options {:optimizations :simple - :pretty-print true - :pseudo-names true} + {;:compiler-options {:source-map true} + ;; for dev build + #_#_ + :compiler-options {:optimizations :simple + :pretty-print true + :pseudo-names true + :source-map true} :target :browser :js-options {:resolve {"react" {:target :global @@ -37,4 +40,5 @@ :depends-on #{:scittle}}} :build-hooks [(shadow.cljs.build-report/hook)] :output-dir "resources/public/js" ;; + "/dev" for dev build - :devtools {:repl-pprint true}}}} + :devtools {:repl-pprint true} + }}}