Skip to content

Commit 52c3cde

Browse files
enable source-map for release debugging and fix vanilla nbb sourcemaps
1 parent 4e3a6eb commit 52c3cde

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

bb.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
release {:depends [clean npm-install]
5050
:doc "Compiles release build."
51-
:task (build/release *command-line-args* {:wrap-cmd-fn wrap-cmd})}
51+
:task (build/release *command-line-args* {:wrap-cmd-fn wrap-cmd :include-source-map? true})}
5252

5353
run-integration-tests nbb-tests/main
5454

build/src/nbb/build.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
(map (fn [m] (format " --config-merge '%s'" (pr-str (:shadow-config m))))
4343
(into feature-configs
4444
[{:shadow-config {:compiler-options {:source-map true}}}])))
45-
cmd')))
45+
(apply str cmd'
46+
(map (fn [m] (format " --config-merge '%s'" (pr-str (:shadow-config m))))
47+
[{:shadow-config {:compiler-options {:source-map true}}}])))))
4648

4749
(defn build
4850
"Build nbb shadow builds using clojure cmd and commandline args. Features on

0 commit comments

Comments
 (0)