Serialize functions in requireConfig after JSON.stringify to prevent potential problems with CRLF.