Skip to content

Commit e807ebf

Browse files
author
dnolen
committed
really fix circular dependency error
1 parent 28a7440 commit e807ebf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,10 @@
16541654
(binding [*cljs-dep-set* (vary-meta (conj *cljs-dep-set* lib) update-in [:dep-path] conj lib)]
16551655
(assert (every? #(not (contains? *cljs-dep-set* %)) deps)
16561656
(str "Circular dependency detected, "
1657-
(apply str (interpose " -> " (-> *cljs-dep-set* meta :dep-path)))))
1657+
(apply str
1658+
(interpose " -> "
1659+
(conj (-> *cljs-dep-set* meta :dep-path)
1660+
(some *cljs-dep-set* deps))))))
16581661
(doseq [dep deps]
16591662
(when-not (or (not-empty (get-in compiler [::namespaces dep :defs]))
16601663
(contains? (:js-dependency-index compiler) (name dep))

0 commit comments

Comments
 (0)