          (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)

      manifest
      (let [foreign-libs (-> @(:input deps)
                             (edn/read-string)
                             (normalize-foreign-libs))]

        (reduce
          (fn [result {:keys [externs provides requires] :as foreign-lib}]

      entries)))

(defn process-deps-cljs
  [{:keys [use-file-min] :as state} manifest source-path]
  {:pre [(compiler-state? state)
         (map? manifest)]}
  (let [deps (get manifest "deps.cljs")]
