Skip to content

Commit e5491d5

Browse files
committed
add cljs.analyzer.api/get-js-index
1 parent fcd1358 commit e5491d5

File tree

1 file changed

+7
-0
lines changed
  • src/main/clojure/cljs/analyzer

1 file changed

+7
-0
lines changed

src/main/clojure/cljs/analyzer/api.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
([state]
5959
(get @state :options)))
6060

61+
(defn get-js-index
62+
"Return the currently computed Google Closure js dependency index from the
63+
compiler state."
64+
([] (get-options env/*compiler*))
65+
([state]
66+
(get @state :js-dependency-index)))
67+
6168
(defn analyze
6269
"Given an environment, a map containing {:locals (mapping of names to bindings), :context
6370
(one of :statement, :expr, :return), :ns (a symbol naming the

0 commit comments

Comments
 (0)