cljs.compiler.api/with-core-cljs

functionsince v0.0-3255Edit
(with-core-cljs)
(with-core-cljs opts)
(with-core-cljs opts body)
(with-core-cljs state opts body)

Source docstring:
Ensure that core.cljs has been loaded.
Source code @ clojurescript:src/main/clojure/cljs/compiler/api.clj
(defn with-core-cljs
  ([]
   (comp/with-core-cljs
     (when-let [state (ana-api/current-state)]
       (:options @state))))
  ([opts] (with-core-cljs opts (fn [])))
  ([opts body]
   (with-core-cljs (or (ana-api/current-state) (ana-api/empty-state opts)) opts body))
  ([state opts body]
   (ana-api/with-state state
     (binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
       (comp/with-core-cljs opts body)))))