Fork me on GitHub
#shadow-cljs
<
2022-05-10
>
danbunea06:05:40

I saw the difference in files but cannot understand why 11k more. At the end of the day I guess I'll rewrite it with a mui aucomplete and I'll make the call to Google maps http api myself.

thheller06:05:18

well yeah, some JS libs are crazy. some are also expecting webpack which can eliminate some of it but that is webpack specific which shadow-cljs does not support

👍 1
Cora (she/her)16:05:55

@danbunea ^^ js libs can be absolutely astonishing :shocked_face_with_exploding_head:

danbunea19:05:51

Yes, I wanted to put this specific example of a library because it is really strange. In the meanwhile after an afternoon of work I rewrote the address autocomplete properly and got rid of it.

borkdude17:05:40

Is it possible to test out a certain clojurescript commit with shadow-cljs? https://github.com/clojure/clojurescript/commit/8b3ce24a6e7e1863802b09618985a0f3a604a0c9

borkdude17:05:12

I tried adding:

org.clojure/clojurescript {:git/url ""
                                   :git/sha "91c597d99b3480c0463b3648016e4f27b0b0b018"}
in my deps, but that crashed

thheller18:05:31

@borkdude define "that crashed"? should be fine normally but something cljs introduces new bindings or some other change that I need to add to shadow-cljs for compatiblity

borkdude20:05:34

Caused by: java.lang.RuntimeException: Unable to find static field: ECMASCRIPT_NEXT_IN in class com.google.javascript.jscomp.CompilerOptions$LanguageMode
	at clojure.lang.Util.runtimeException(Util.java:221)
	at clojure.lang.Compiler.analyzeSymbol(Compiler.java:7328)
	at clojure.lang.Compiler.analyze(Compiler.java:6785)
	... 235 more

thheller20:05:26

that is with a wrong closure compiler version

thheller20:05:14

v20220301 should be ok, didn't test newer ones yet

borkdude20:05:26

is that referring to this coordinate?

com.google.javascript/closure-compiler-unshaded {:mvn/version "v20220202"}

thheller18:05:42

as far as I can remember none of those were added though