           (if (identical? peek eof-sentinel)
             (throw (ex-info "file is empty" {:name name}))
             (let [ast (-> (util/parse-ns peek)
-                          (rewrite-clojure-requires state))]
+                          (rewrite-ns-aliases state))]
               (-> state
                   (update-rc-from-ns rc ast)
                   (assoc :cljc cljc?)))))

        :require-order (into [] (map munge-goog-ns) (.getRequires deps))
        :provides (into #{} (map munge-goog-ns) (.getProvides deps))))))

(defn rewrite-clojure-requires
  [{:keys [requires uses require-order] :as ast}
   {:keys [ns-alias-fn] :as state}]
  (let [should-rewrite

        ))))

(defn update-rc-from-ns
  [state rc {:keys [name require-order] :as ast}]
  {:pre [(compiler-state? state)]}
  (let [require-order
        (if (= 'cljs.core name)
