Fork me on GitHub
#cljs-dev
<
2019-11-01
>
dnolen15:11:46

You cannot dynamically require in general, so yes not feasible

dominicm15:11:17

@dnolen would it be possible to do it the same way resolve works (ie not dynamic)

dnolen15:11:14

resolve already exists as macro time operation

dnolen15:11:39

See the docs on codesplitting

dominicm16:11:11

I'm not after code splitting fwiw.

dnolen16:11:22

But you’re looking for an example

dnolen16:11:06

See also cljs.anayzer.api

thheller16:11:27

@dominicm no there cannot be a static (requiring-resolve 'foo.bar/something) since require itself is async in CLJS

thheller16:11:30

(and might require compilation which won't be available in release builds)

lilactown22:11:57

where is fn* handled?

roman01la08:11:44

Are you playing with async/await? I can share a branch in cljs with async function and await implemented in the compiler when I get to my laptop

lilactown14:11:34

That would be awesome

lilactown22:11:21

I see it used in cljs.core but not where it’s defined or handled (assuming it’s a special symbol)