Transform stream to remove require calls from inside a try{} statement