Fixing module export in wrapHTMLError