           out)]
 
     (spit target out)))
-
 
 (defn flush-unoptimized!
   [{:keys [build-modules public-dir] :as state}]

         (into []))
    ))


;; added by default in init-state
(defn closure-add-replace-constants-pass [cc ^CompilerOptions co state]
  (.addCustomPass co CustomPassExecutionTime/BEFORE_CHECKS (ReplaceCLJSConstants. cc)))

          nil)))))

(defn write-variable-map [{:keys [cache-dir] :as state} name map]
  (when map
    (let [map-file
          (doto (io/file cache-dir name)
            (io/make-parents))

          bytes
          (ByteArrayInputStream. (.toBytes map))]

      (with-open [out (FileOutputStream. map-file)]
        (io/copy bytes out)))))

(defn closure-add-variable-maps [cc co {:keys [cache-dir] :as state}]
  (when-some [data (read-variable-map state "closure.property.map")]
