             (spit target source-map-json)))))
 
     ;; with-logged-time expects that we return the compiler-state
-    state))
+    state
+    ))
 
 (defn load-externs [{:keys [externs build-modules] :as state}]
   (let [externs

          nil)))))

(defn write-variable-map [{:keys [cache-dir] :as state} name 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")]

         (into []))
    ))

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