     :provides #{name}
     :macro-namespaces (macros-from-ns-ast state ast)
     :requires (into #{} require-order)
-    :js-requires js-requires
+    :js-ns-aliases js-ns-aliases
     :require-order require-order))
 
 (defn js-resolver-for-file [state file]

        ))))

(defn update-rc-from-ns
  [state rc {:keys [name require-order js-requires] :as ast}]
  {:pre [(util/compiler-state? state)]}
  (assoc rc
    :ns name

              (map :js-ns-aliases)
              (reduce merge {}))]
     (generate-npm-resources state js-ns-aliases)))
  ([state js-ns-requires]
   (reduce-kv generate-npm-resource state js-ns-requires)))

(defn make-provide-index [state]
  (let [idx
