Fork me on GitHub
#squint
<
2022-12-22
>
Donnie West03:12:25

Possibly me being silly, but does squint support aliasing imports? (:require ["package" :refer [foo] :rename {foo bar}]) Having trouble making that work

Donnie West03:12:52

Trying to convert wmr's sample app to squint. Their entry point both imports prerender (then aliases it to ssr) and then exports a function of the same name

borkdude07:12:10

Don’t know if rename works yet but alias should

borkdude07:12:16

Issue welcome

👍 1
borkdude19:12:46

The CLJS looks a lot better to me ;)

dangercoder20:12:33

I agree 😄, It’s amazing being able to mix js and cljs in a project and use high quality js libs from cljs.

dangercoder22:12:17

think I could just use (Map.) and be able to use select-keys ☝️

borkdude22:12:23

should work I think...

1
alexdavis14:12:57

Just a tip, you can do (:errors result) instead of (.-errors result) and (:email data) instead of (.get data "email") because using a keyword as a function is compiled into get using a string as the key don't even know if this is actually better, but it is at least less to type and looks less 'interopy' 😄