cljs.build.api/ns->location

functionsince v0.0-3291Edit
(ns->location ns)
(ns->location ns compiler-env)

Source docstring:
Given a namespace and compilation environment return the relative path and
uri of the corresponding source regardless of the source language extension:
.cljs, .cljc, .js. Returns a map containing :relative-path a string, and
:uri a URL.
Source code @ clojurescript:src/main/clojure/cljs/build/api.clj
(defn ns->location
  ([ns]
   (ns->location ns (or (ana-api/current-state) (ana-api/empty-state))))
  ([ns compiler-env]
   (closure/source-for-namespace ns compiler-env)))