Fork me on GitHub
#clojurescript
<
2020-06-12
>
ikitommi07:06:57

is there a way to do an optional require of a namespace using a compiler option so that dce will not include anything from that ns? trying to make sci optional in a library, needs to be remove both from a require and fn call. Or are there other ways to do this?

borkdude07:06:07

@ikitommi The way I would recommend doing that is to let people require sci.core themselves and you check in your code if it exists. Same as cljs.spec does with test.check.

ikitommi08:06:35

thanks, will try to do that

ikitommi10:06:13

would it be possible to eliminate dead code under :advanced compilation for protocol methods impls if the protocol method is not called?

thheller10:06:56

@ikitommi pretty sure that already happens? assuming you are actually never calling the dispatch-fn either.

MorongÖa13:06:21

Does the latest Clojurescript make it easier to use Storybook'?? How has anyone used storybook clojurescript?

MorongÖa07:06:47

Thank you. I use figwheel. But we see how I could integrate this.

valerauko14:06:47

is there some recommended way to deal with css in re-frame/shadow?

fbielejec14:06:08

I released a cljs library which wraps https://github.com/orbitdb/orbit-db (an IPFS database): https://github.com/district0x/cljs-orbitdb. Maybe useful for someone.

fbielejec12:06:36

Not yet, but plan on in an experimental architecture. It will play a role of (distributed) kv store, similar to Redis in centralized applications.