Skip to content

Commit

Permalink
change :root-source-info to be REPL only
Browse files Browse the repository at this point in the history
otherwise can cause issues with caching when custom reader
literals are used. CLJS itself also only seems to have it for
the REPL.
  • Loading branch information
thheller committed Jun 10, 2024
1 parent aece0cf commit 0f3d91e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/shadow/build/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@
;; this is anything but empty! requires *cljs-ns*, env/*compiler*
base-env
(-> (empty-env state ns)
(assoc :root-source-info {:source-type :fragment
:source-form form})
(cond->
repl-context?
(assoc ::repl-context true
:context :expr
:def-emits-var true)))
:def-emits-var true
:root-source-info {:source-type :fragment
:source-form form})))


result
Expand Down

0 comments on commit 0f3d91e

Please sign in to comment.