Noob question. I ran lein new figwheel hello-world
. It includes a user.clj
file that defines a user
namespace. This file doesn't seem to be loaded into the default cljs.user
namespace when I run figwheel. It is, however, used for the default user
namespace when I run lein repl
. So.. what should I do if I'd like to add some definitions to the cljs.user
namespace that I'm dropped into when figwheel's repl fires up?
Defining my own cljs.user
ns doesn't seem to do the trick. I've also tried messing with project.clj a bunch. At this point, I'm fresh out of ideas.
Scratch that — figured it out. It seems my custom cljs.user
ns just wasn't being required — as opposed to the user.clj
file, which was just magically loaded? Slightly confused about that, but it works so that's good enough for now.
Thanks @danielcompton though I have found it difficult to integrate that into my build. I don't know whether it is because I am unfamiliar with Boot or Figwheel or both.