We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45f6355 commit 250a9faCopy full SHA for 250a9fa
src/main/clojure/cljs/js_deps.cljc
@@ -224,10 +224,10 @@ case."
224
([lib-spec] (load-foreign-library* lib-spec false))
225
([lib-spec cp-only?]
226
(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))})
+ (cond-> (assoc lib-spec :foreign true)
+ (:file lib-spec)
+ (assoc :url (find-func (:file lib-spec)))
+
231
(:file-min lib-spec)
232
(assoc :url-min (find-func (:file-min lib-spec)))))))
233
0 commit comments