Fork me on GitHub
#cljsrn
<
2017-01-31
>
harrybin03:01:28

Using advanced compilation makes sense for keeping the size of the index.android.js and index.ios.js files down so Babel doesn't have a hard time with the minification step. The more modules you add, the bigger index.js files get. And it shaves a little bit off the final app size. Missing externs makes the advanced compiled app crash so important to get them all included. But there's been recent work on getting Clojurescript to infer externs that would be very helpful but I've not had a chance to try it out with react native.

ejelome07:01:38

^ I think it's not useful in re-natal (react native) because the source in the end will be byte-code, and not something used in the web.

ejelome07:01:19

although I agree with you if the usage is for the web 🙂

pesterhazy08:01:30

@harrybin still not convinced :)

pesterhazy08:01:21

Babel should be able to handle your cljs bundles

pesterhazy08:01:48

Adv compilation is a lot of headache for little gain

harrybin08:01:00

@pesterhazy in some older versions of RN it was taking really long to minify or the system would run into out of memory issues, for me that was fixed with using advanced compilation. So I'm still sticking with it, but maybe it's no longer helpful. Whatever works, until the ecosystem stabilises a bit more and we can define more best/stable practices. But I'm already really happy developing Android+iOS cross platform apps with Clojurescript!

pesterhazy08:01:34

Maybe the problem will go away with David's latest changes