When trying to package a javascript library using `:global-exports` I'm getting an error:
Exception in thread "main" java.lang.IllegalArgumentException: contains? not supported on type: clojure.lang.Cons
at clojure.lang.RT.contains(RT.java:846)
at clojure.core$contains_QMARK_.invokeStatic(core.clj:1484)
at clojure.core$contains_QMARK_.invoke(core.clj:1476)
at cljs.analyzer$dep_has_global_exports_QMARK_.invokeStatic(analyzer.cljc:782)
...
Library repository:
https://github.com/colinkahn/deckgl-cljs
To reproduce:
clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"} org.clojars.protocol55/deckgl {:mvn/version "0.1.1"}}}' -m cljs.main -e "(require 'com.uber.deckgl) (println com.uber.deckgl/DeckGL)"
Same library with `:global-exports` removed:
clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"} org.clojars.protocol55/deckgl {:mvn/version "1.0.0"}}}' -m cljs.main -e "(require 'com.uber.deckgl) (println js/deck.DeckGL)"