figwheel-main 2021-10-13

is it possible to use :preloads to inject a require for something like https://github.com/weavejester/hashp which needs to use :include-macros? e.g. :preloads [hashp.core :include-macros true] (which doesn’t work, fails figwheel’s spec check)

Hmm... I suspect hashp can be changed such that this isn't a problem, but I'm not certain.

hashp/core.cljs does a :require-macros itself, so it shouldn't be necessary to require-macros it again.

You could create your own namespace which does this though!

a namespace which loads macros globally? so I can reference them from any namespace without requiring in that namespace?

preloads doesn't load it into every namespace.

Isn't the point of hashp that you use #p? So you only need to load it once anywhere?

this issue seemed to suggest otherwise