transform require directives since wsapi not used clause module anymore