cljs.repl.browser/compile-client-js

functionremoved v1.10.63added v0.0-927Edit
(compile-client-js opts)

Source code @ clojurescript:src/main/clojure/cljs/repl/browser.clj
(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))))