Fork me on GitHub

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?


@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

👍 1

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