(defn resolve-invokeable-ns [ns current-ns env]
(let [ns (resolve-ns-alias env ns)
module-type (ns->module-type ns)]
(case module-type
:js {:name (symbol
(or (gets @env/*compiler* :js-module-index ns :name)
(resolve-ns-alias env ns)))
:ns 'js}
:node {:name (symbol (str current-ns)
(munge-node-lib (resolve-ns-alias env ns)))
:ns current-ns}
:global {:name (symbol (str current-ns)
(munge-global-export (resolve-ns-alias env ns)))
:ns current-ns})))