Skip to content

Commit c5e1fea

Browse files
committed
we need to filter external deps from cljs_deps.js
1 parent 221d8a4 commit c5e1fea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,11 @@
16081608
"], ["
16091609
;; even under Node.js where runtime require is possible
16101610
;; this is necessary - see CLJS-2151
1611-
(ns-list (cond->> (deps/-requires input)
1611+
(ns-list (cond->>
1612+
;; remove external? foreign deps - they are already loaded
1613+
;; in the environment, there is nothing to do.
1614+
;; :require-global is the typical case here
1615+
(remove ana/external-dep? (deps/-requires input))
16121616
;; under Node.js we emit native `require`s for these
16131617
(= :nodejs (:target opts))
16141618
(filter (complement ana/node-module-dep?))))

0 commit comments

Comments
 (0)