cljs.build.api/ns->location
function | since v0.0-3291 | Edit |
(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.
(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)))