Fork me on GitHub
#joyride
<
2023-02-10
>
Quentin Le Guennec09:02:04

Is there any news about rewrite-clj for joyride?

pez09:02:55

Not other than that Joyride is better prepared for including rewrite-clj since a while.

pez09:02:06

I think @U04V15CAJ might want us to solve the lazy-require of dependencies before we include rewrite-clj, but I might be wrong about that.

borkdude09:02:59

What we have to do here is create a module so shadow will compile a different .js file

borkdude09:02:22

and then we require (in Node.js) that via the load-fn when people require rewrite-clj

borkdude09:02:32

I can take a look at this today maybe.... maybe...

🤞 2
Quentin Le Guennec09:02:23

I’m curious as to why rewrite-clj would be different than any other clojurescript dependency

pez09:02:41

It's not.

borkdude09:02:02

It's not but so far we haven't included many CLJS dependencies yet and lazy loading is better for startup time

pez09:02:43

Joyride is, and needs to be, very quick to start.

👍 2
pez09:02:57

@U04V15CAJ would it make sense for joyride to be able to read bb.edn config and figure out dependencies that way?

borkdude10:02:59

that's an entirely different issue

borkdude10:02:22

rewrite-clj isn't compatible with joyride/SCI from source so that wouldn't help

pez10:02:53

But would it be a thing for compatible libraries?

borkdude10:02:38

yes, but this is a different topic right?

borkdude10:02:03

last time we talked about it we also considered using npm for this

borkdude10:02:18

since those scripts may depend on other npm libs

pez10:02:48

Yes, probably a different topic. Just started to think about it.

pez10:02:16

The Discussions on the repo might be a good place to iron it out.