               (-> rc
                   (dissoc :file :output :input :url :forms :ast)
                   (assoc :age-of-deps (make-age-map state ns)
-                    :analyzer (get-in @env/*compiler* [::ana/namespaces ns])))
+                         :analyzer (get-in @env/*compiler* [::ana/namespaces ns])))
 
               cache-options
               (reduce

                ns-map))]

        (assoc ast
          :require-order
          (into [] (map rewrite-ns) require-order)
          :requires
          (rewrite-ns-map requires true)
          :uses
          (rewrite-ns-map uses false))
        ))))

(defn update-rc-from-ns
  [state rc {:keys [name require-order] :as ast}]
  {:pre [(compiler-state? state)]}
  (assoc rc
    :ns name
    :ns-info (dissoc ast :env)
    :provides #{name}
    :macro-namespaces (macros-from-ns-ast state ast)
    :requires (into #{} require-order)
    :require-order require-order))

(defn peek-into-cljs-resource
  "looks at the first form in a .cljs file, analyzes it if (ns ...) and returns the updated resource


           evt#
           (assoc msg#
                  :timing :exit
                  :depth *time-depth*
                  :stop stop#
                  :duration (- stop# start#))]
       (log (if (compiler-state? result#) result# ~state) evt#)
       result#)
     ))
