Fork me on GitHub
#figwheel-main
<
2021-04-15
>
Quentin Le Guennec06:04:07

Hello, I am using Postmortem to debug a large project but manually typing and deleting require calls is annoying. Is there a way to automatically import it in all project namespaces?

lispers-anonymous16:04:37

what build tool are you using?

lispers-anonymous16:04:57

In my leiningen user profile, I use the :injections keyword to require the scope-capture library in every namespace.

{:user {:dependencies [vvvvalvalval/scope-capture "0.3.2"]
        :injections [(require 'sc.api)]}}

lispers-anonymous17:04:01

In figwheel, you might also be able to use :preloads to accomplish something similar.