Fork me on GitHub
#shadow-cljs
<
2019-10-28
>
ro618:10:11

Is there a way to ensure a particular ns gets loaded early? Kinda like :preloads but also in the release build? I have some (extend-type ...) calls that I want to be available everywhere in the browser environment without having to require the ns. Or would the preferred way just be to require the ns in each of the "init" namespaces that Shadow knows about?

thheller18:10:34

@robert.mather.rmm it is generally bad practice to rely on some side-effect during loading, but the order of :entries will be preserved in your config

👍 4
thheller18:10:04

so you can configure :modules {:main {:entries [that.side-effect-ns ]}}