Transform was not applying to files in node_modules without {global:true} option set in transform().