Skip to content

Commit

Permalink
CLJS-1860: Resolve JS modules referred by their fully-qualified names…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
anmonteiro authored and swannodette committed Nov 28, 2016
1 parent 170fd76 commit 79a20af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/clojure/cljs/analyzer.cljc
Expand Up @@ -807,7 +807,10 @@
:cljs (identical? "clojure.core" ns))
"cljs.core"
ns)
full-ns (resolve-ns-alias env ns)]
full-ns (resolve-ns-alias env ns
(or (and (js-module-exists? ns)
(get-in @env/*compiler* [:js-module-index ns]))
(symbol ns)))]
(when-not (nil? confirm)
(when (not= (-> env :ns :name) full-ns)
(confirm-ns env full-ns))
Expand Down

0 comments on commit 79a20af

Please sign in to comment.