Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

When using things like the Google Maps JS API (link: 1) the Javascript that is required can't be bundled inside a jar as it depends on the used API key.

To be able to provide externs for those kind of libraries there should be a way to declare them as "remote" in {{deps.cljs}}.

(link: 1) https://developers.google.com/maps/documentation/javascript/tutorial

3 Answers

0 votes
by

Comment made by: nathandao

js_deps.cljs deliberately only allows upstream foreign-libs (defined in deps.cljs file) to be local file. Yet, this issue is still open, so I (hastily :D) assume the local file enforcement was not intentional.

The patch should add back support for using url as foreign-libs in deps.cljs and remove unused codes in load-foreign-library**.

0 votes
by

Comment made by: mfikes

Patch no longer applies.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-1009 (reported by martinklepsch)
...