:preloads

compiler optionsince v1.9.85Edit

A list of namespaces to load before :main, allowing you to preload extra code for specific builds. For example, a development build can use it to setup logging or connecting REPLs. Only applies when :optimizations is :none.

:preloads '[foo.dev]

Examples:

If you have the following namespace:

(ns foo.dev)

(enable-console-print!)

You can configure your development build to load this side effect prior to your main namespace with :preloads '[foo.dev].