Skip to content

Commit 250a9fa

Browse files
committed
do not immediately fail if foreign lib-spec does not provide :file,
prep for CLJS-2250
1 parent 45f6355 commit 250a9fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/clojure/cljs/js_deps.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ case."
224224
([lib-spec] (load-foreign-library* lib-spec false))
225225
([lib-spec cp-only?]
226226
(let [find-func (if cp-only? io/resource find-url)]
227-
(cond->
228-
(merge lib-spec
229-
{:foreign true
230-
:url (find-func (:file lib-spec))})
227+
(cond-> (assoc lib-spec :foreign true)
228+
(:file lib-spec)
229+
(assoc :url (find-func (:file lib-spec)))
230+
231231
(:file-min lib-spec)
232232
(assoc :url-min (find-func (:file-min lib-spec)))))))
233233

0 commit comments

Comments
 (0)