              #_(map #(do (println (.getCode %)) %))
              (into []))
 
-        ;; this includes all files (sources + package.json files)
         source-files-by-name
         (->> source-files
              (map (juxt #(.getName %) identity))

  "takes a list of :js sources and rewrites them to using closure
   partial compiles must supply the cached sources so closure doesn't complain about things
   it cannot resolve"
  [{:keys [project-dir npm mode] :as state} sources cached-sources]

  (let [source-files
        (for [{:keys [resource-name file] :as src} sources]


(defn convert-sources-simple*
  "takes a list of :npm sources and rewrites in a browser compatible way, no full conversion"
  [{:keys [js-options mode] :as state} sources]
  (let [source-files
        (->> (for [{:keys [resource-id resource-name ns require-id file deps] :as src} sources]
               (let [source (data/get-source-code state src)
