Skip to content

Commit 2ee0f25

Browse files
committed
fix orphans bit
1 parent 9d8d371 commit 2ee0f25

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main/clojure/cljs/module_graph.cljc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,11 @@
229229
e&d->ms (merge-with into e->ms d->ms)
230230
orphans {:cljs-base
231231
{:entries
232-
(map (comp str comp/munge first :provides)
233-
(-> (reduce-kv
234-
(fn [m k _]
235-
(reduce dissoc m (get-in m [k :provides])))
236-
index e&d->ms)
237-
vals set))}}
232+
(->> (reduce-kv
233+
(fn [m k _]
234+
(reduce dissoc m (get-in m [k :provides])))
235+
index e&d->ms)
236+
vals (map (comp str comp/munge first :provides)) set)}}
238237
o->ms (assigns identity orphans)
239238
od->ms (assigns #(distinct (mapcat deps %)) orphans)
240239
all->ms (merge-with into e&d->ms o->ms od->ms)]

0 commit comments

Comments
 (0)