Fork me on GitHub
#figwheel-main
<
2021-10-13
>
ccann18:10:45

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)

dominicm19:10:44

You could create your own namespace which does this though!

ccann20:10:38

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

dominicm20:10:05

preloads doesn't load it into every namespace.

dominicm20:10:05

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

ccann20:10:31

this issue seemed to suggest otherwise

dominicm20:10:38

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

dominicm20:10:34

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