Skip to content

Commit e2e5525

Browse files
committed
make cljs.js core dumping configurable, it doubles output size and slows down compile time.
1 parent d92b300 commit e2e5525

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/cljs/cljs/js.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
~@body))
1919

2020
(defmacro dump-core []
21-
`(quote ~(get-in @env/*compiler* [::ana/namespaces 'cljs.core])))
21+
(let [state @env/*compiler*]
22+
(if-not (false? (get-in state [:options :dump-core]))
23+
`(quote ~(get-in state [::ana/namespaces 'cljs.core]))
24+
`(hash-map))))

0 commit comments

Comments
 (0)