Have a look at transform-when[1]. It might suit your needs.
Demo can be seen here[2].
[1] https://github.com/callumacrae/transform-when
[2] https://web.archive.org/web/20171203224250/https://samknows....
[1] https://github.com/callumacrae/transform-when
[2] https://web.archive.org/web/20171203224250/https://samknows....
No comments yet.