Fork me on GitHub
#malli
<
2020-06-12
>
ikitommi06:06:34

initial bundle-size anaysis for cljs. related to #203

borkdude09:06:50

@ikitommi Note that about 200kb of the sci bundle is coming from docstrings 🙂

borkdude09:06:02

at least, if you bump to the newest sci

ikitommi10:06:04

yes, updated the latest. Haven’t really studied how the dce works and how can libraries be smaller. Would be great if one could drop off whole protocol method impls if the protocol method was not used. E.g. if you don’t have any calls to the transformers, we coud remote the -transformer methods, which is easily 30% of the whole malli.core.

ikitommi10:06:52

most of the concerns are in separate namespaces (json-schma, human errors, inferring), but the important ones are in the core right now. But not always important 🙂

ikitommi10:06:25

also, would be great to have a sci-liteversion without the docstrings.

borkdude10:06:14

maybe that can be accomplished using a goog/define

borkdude10:06:08

:closure-defines {"sci.foo/DOCSTRINGS" false}