 (defn namespace-info
   [ns-name & [file]]
   (let [file (or file (fm/find-file-for-ns-on-cp ns-name))]
-    (if-let [data (analyze-cljs-ns! ns-name)
+    (if-let [data (analyze-cljs-ns! ns-name file)
              ;  data (env/with-compiler-env cenv
              ;         (if file
              ;           (ana/analyze-file

            [rksm.cloxp-cljs.filemapping :as fm]
            [rksm.cloxp-cljs.compilation :as comp]
            [rksm.system-files :as sf]
            [rksm.system-files.cljx.File :as sfx]
            [rksm.cloxp-source-reader.core :as src-rdr]
            [clojure.data.json :as json]
            [clojure.string :as s]

                           (update-in [:name] (comp symbol name)))]
        (binding [tr/*data-readers* cljs-literals/*cljs-data-readers*
                  tr/*alias-map* (apply merge ((juxt :requires :require-macros) file-data))
                  sfx-file/*output-mode* :cljx]
          (let [rdr (sf/source-reader-for-ns ns-name file #"\.clj(s|x)$")]
            (some->> [file-data]
              (src-rdr/add-source-to-interns-with-reader rdr)
