Fork me on GitHub
#cljs-dev
<
2022-06-28
>
dnolen18:06:56

I know this has come up before but has anyone looked at tsickle much? transpiling everything to Google Closure does seem useful

dnolen18:06:25

looking around, it seems that perhaps Google has switched to TypeScript on a lot of projects but uses tsickle to get everything into Closure

dnolen18:06:34

another bit that's interesting is if they're using Closure Compiler as a lower level rep - could mean some of the churn is winding down since there's less pressure to make Closure Compiler "higher" level

lilactown18:06:23

i did some experiments with tsickle a year or two ago. there were some issues at the time because we were in the middle of the goog.module migration on both GCC and clojurescript side, so i ended up having to hand edit the JS to get it to be used in cljs

lilactown19:06:15

i should try it again

lilactown19:06:07

it would be great if it could eventually lead to improved documentation & autocomplete for typescript libraries via the REPL

thheller19:06:53

I believe the closure compiler is also capable of just parsing typescript directly nowadays. never tried it but I stumbled over various mentions in the codebase https://github.com/google/closure-compiler/blob/d62ad8e9bbc21a5ed2d1829437248a0a309cbf0a/src/com/google/javascript/jscomp/parsing/parser/FeatureSet.java#L141

thheller19:06:31

pretty sure it doesn't support tsx though

dnolen19:06:42

hrm that is interesting