react-pdf generation is very slow in combination with umijs