figwheel-main

ccann 2021-10-13T18:00:45.071500Z

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)

dominicm 2021-10-15T20:20:38.074100Z

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

dominicm 2021-10-15T20:21:34.074300Z

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

dominicm 2021-10-14T19:50:44.072100Z

You could create your own namespace which does this though!

ccann 2021-10-14T20:11:38.072300Z

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

dominicm 2021-10-14T20:14:05.072500Z

preloads doesn't load it into every namespace.

dominicm 2021-10-14T20:15:05.072700Z

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

ccann 2021-10-14T20:30:31.072900Z

this issue seemed to suggest otherwise

ccann 2021-10-14T20:30:32.073100Z

https://github.com/weavejester/hashp/issues/9