Skip to content

Commit b258e0f

Browse files
committed
CLJS-2250: Support :foreign-libs overrides via :provides
1 parent 0cd4ac5 commit b258e0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,7 @@
19961996
(conj (string/replace p' "_" "-")))))
19971997
(expand-lib* [{:keys [file] :as lib}]
19981998
(if-not file
1999-
[] ;; foreign-lib override case - David
1999+
[lib] ;; foreign-lib override case - David
20002000
(let [root (.getAbsolutePath (io/file file))
20012001
dir (io/file file)]
20022002
(if (.isDirectory dir)

src/main/clojure/cljs/js_deps.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ case."
164164
index provides)
165165
index)]
166166
(if (:foreign dep)
167-
(if-let [file (get-file dep index)]
167+
(if-let [file (get-file dep index')]
168168
(update-in index' [file] merge dep)
169169
(throw
170170
(Exception.

0 commit comments

Comments
 (0)