          (seq path)]}
   (let [root (io/file path)
         root-path (.getCanonicalPath root)
-        root-len (inc (count root-path))]
-    (->> (for [^File file (file-seq root)
-               :let [file (.getCanonicalFile file)
-                     abs-path (.getCanonicalPath file)]
-               :when (and (is-cljs-resource? abs-path)
-                          (not (.isHidden file)))
-               :let [name (-> abs-path
-                              (.substring root-len)
-                              (normalize-resource-name))]
-               :when (not (should-ignore-resource? state name))]
-
-           (make-fs-resource state path name file))
-         (map (juxt :name identity))
-         (into {})
-         (process-deps-cljs state)
-         (vals)
-         )))
+        root-len (inc (count root-path))
+
+        manifest
+        (->> (for [^File file (file-seq root)
+                   :let [file (.getCanonicalFile file)
+                         abs-path (.getCanonicalPath file)]
+                   :when (and (is-cljs-resource? abs-path)
+                              (not (.isHidden file)))
+                   :let [name (-> abs-path
+                                  (.substring root-len)
+                                  (normalize-resource-name))]
+                   :when (not (should-ignore-resource? state name))]
+
+               (make-fs-resource state path name file))
+             (map (juxt :name identity))
+             (into {}))]
+
+    (-> (process-deps-cljs state manifest path)
+        (vals))))
 
 (defn get-resource-for-provide [state ns-sym]
   {:pre [(compiler-state? state)

           (not (or (= name expected-name)
                    (= name expected-cljc)
                    ))))
    (do (log-warning logger (format "ns did not match file-path: %s -> \"%s\" (via \"%s\")" (:ns src) name url))
        ;; still want to remember the resource so it doesn't get detected as new all the time
        (assoc-in state [:sources name] src))

    ;; do not merge files that are already present from a different source path
    (let [existing (get-in state [:sources name])]

                     (io/make-parents mfile)
                     (write-jar-manifest mfile manifest)
                     manifest))]
    (-> (process-deps-cljs state manifest path)
        (vals))))

(defn make-fs-resource [state source-path rc-name ^File rc-file]
