function | removed v1.10.63 | added v0.0-927 | Edit |
(compile-client-js opts)
(defn compile-client-js [opts]
(let [copts {:optimizations (:optimizations opts)
:output-dir (:working-dir opts)}]
;; we're inside the REPL process where cljs.env/*compiler* is already
;; established, need to construct a new one to avoid mutating the one
;; the REPL uses
(cljsc/build
'[(ns clojure.browser.repl.client
(:require [goog.events :as event]
[clojure.browser.repl :as repl]))
(defn start [url]
(event/listen js/window
"load"
(fn []
(repl/start-evaluator url))))]
copts (env/default-compiler-env copts))))