   "populates :cache-key of the resource with the resolved symbols of its deps
    to ensure recompilation when their names change"
   [state resource-id]
-  (let [rc (data/get-source-by-id state resource-id)
+  (let [{:keys [require-id] :as rc} (data/get-source-by-id state resource-id)
         deps-syms (data/deps->syms state rc)
 
         require-ids


    (update-in state [:sources resource-id :cache-key]
      (fn [key]
        (->> (into key (concat deps-syms require-ids))
             (distinct)
             (into []))))))

(defn throw-js-errors-now! [state]
  (doseq [{:keys [file js-errors source] :as src} (data/get-build-sources state)

          ;;
          ;; wonder if there is something that is gzip-friendly but also cache-friendly

          (let [alias idx #_(subs (util/md5hex (str ns)) 0 6)]
            (-> state
                (update-in [:sources src-id] assoc :require-id alias)
                (assoc-in [:require-id->sym alias] ns)
