Browse files

CLJS-1313: REPL support for libs compiler opts

Does module processing and dependency index
setup if :libs or :foreign-libs is passed to REPL.
  • Loading branch information...
mfikes authored and swannodette committed Jun 17, 2015
1 parent d1ab345 commit 2fa6fcad7bbf2375d3dc7dba669c65b06269b8b3
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/clojure/cljs/repl.cljc
@@ -21,6 +21,7 @@
[cljs.analyzer :as ana]
[cljs.analyzer.api :as ana-api]
[cljs.env :as env]
[cljs.js-deps :as deps]
[cljs.tagged-literals :as tags]
[cljs.closure :as cljsc]
[cljs.source-map :as sm])
@@ -830,6 +831,11 @@
(catch Throwable e
(caught e repl-env opts)
opts (if (or (:libs opts) (:foreign-libs opts))
(let [opts (cljsc/process-js-modules opts)]
(swap! env/*compiler* assoc :js-dependency-index (deps/js-dependency-index opts))
init (or init
#(evaluate-form repl-env env "<cljs repl>"

0 comments on commit 2fa6fca

Please sign in to comment.