cljs.analyzer.api/empty-state

functionsince v1.7.10Edit
(empty-state)
(empty-state opts)

Source docstring:
Creates an empty compilation state Atom. The optional opts arg is a map
representing the compiler configuration. See the documentation
for details: https://clojurescript.org/reference/compiler-options
Source code @ clojurescript:src/main/clojure/cljs/analyzer/api.cljc
(defn empty-state
  ([]
   (if-not (nil? env/*compiler*)
     env/*compiler*
     (env/default-compiler-env)))
  ([opts]
   (env/default-compiler-env opts)))