                :file file
                :abs-path (.getAbsolutePath file)
                :path path)))
-         (merge-resources (do-find-resources-in-path state path))))))
+         (merge-resources resources)))))
 
 (defn find-resources
   "finds cljs resources in the given path"

           (java.util.jar JarFile JarEntry)
           (com.google.javascript.jscomp.deps JsFileParser)
           (java.util.logging Level))
  (:require ;; [clojure.pprint :refer (pprint)]
    [clojure.data.json :as json]
    [clojure.java.io :as io]
    [clojure.set :as set]
    [clojure.string :as str]
    [clojure.edn :as edn]
    [cljs.analyzer :as ana]
    [cljs.closure :as closure]
    [cljs.compiler :as comp]
    [cljs.source-map :as sm]
    [cljs.env :as env]
    [cljs.tagged-literals :as tags]
    [cljs.util :as cljs-util]
    [clojure.repl :refer (pst)]
    [clojure.core.reducers :as r]
    [clojure.tools.reader :as reader]
    [clojure.tools.reader.reader-types :as readers]
    [clojure.core.reducers :as r]
    [loom.graph :as lg]
    [loom.alg :as la]
    [cognitect.transit :as transit]
    [clojure.java.shell :as shell]
    [shadow.cljs.util :as util]))

(defn ^com.google.javascript.jscomp.Compiler make-closure-compiler []
  (com.google.javascript.jscomp.Compiler/setLoggingLevel Level/WARNING)

  (let [root (io/file path)
        root-path (.getAbsolutePath root)
        root-len (inc (count root-path))]
    (into [] (for [file (file-seq root)
                   :let [abs-path (.getAbsolutePath 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)
               ))))

(defn get-resource-for-provide [state ns-sym]
  {:pre [(compiler-state? state)
         (symbol? ns-sym)]}
