Comment

Fabio Spampinato

Cool, I'm the maintainer of Cash and I'm happy to read articles such as this one :)

If you want to push this even further you may be able to partially compile your own version of Cash which contains only the methods you're actually using. This isn't particularly well documented, and it take some manually fiddling with the configuration, but read this out if this sounds interesting to you: https://github.com/kenwheeler/cash/blob/master/docs/partial_builds.md

IMHO switching to vanilla JS is an anti-pattern unless you really need very few helper methods.

Replies

Peter Bengtsson

You deserve the praise that comes from the result.
I'll have to check out those custom build instructions, when I'm not on my phone, but it certainly makes me scared of the complexity-over-time.

Why do you say that vanilla JS is an anti-pattern?

Next time I try vanilla JS I think I'll try out Bliss.js and see how that feels.