Skip to content

Commit

Permalink
make browser REPL file reloads less chatty
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Nov 4, 2015
1 parent 2c633d5 commit 6dc027b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/clojure/cljs/repl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,14 @@
(if (:output-dir opts)
;; REPLs that read from :output-dir just need to add deps,
;; environment will handle actual loading - David
(doseq [source (->> sources
(remove (comp #{:seed} :type))
(map #(cljsc/source-on-disk opts %)))]
(when (:repl-verbose opts)
(println "Loading:" (:provides source)))
(-evaluate repl-env "<cljs repl>" 1
(cljsc/add-dep-string opts source)))
(let [sb (StringBuffer.)]
(doseq [source (->> sources
(remove (comp #{:seed} :type))
(map #(cljsc/source-on-disk opts %)))]
(when (:repl-verbose opts)
(println "Loading:" (:provides source)))
(.append sb (cljsc/add-dep-string opts source)))
(-evaluate repl-env "<cljs repl>" 1 (.toString sb)))
;; REPLs that stream must manually load each dep - David
(doseq [{:keys [url provides]} deps]
(-load repl-env provides url))))))
Expand Down

0 comments on commit 6dc027b

Please sign in to comment.