I've been migrating from react-native-render-html to this new library and one of the things I noticed is that ramda dependencies are still using deep imports. I had a patch for the old library to replace all these with es6 based imports which helped a lot with getting tree-shaking to work properly.
My suggestion would be to make those updates in the codebase.
e.g.
instead of
import mergeDeepRight from 'ramda/src/mergeDeepRight';
use
import { mergeDeepRight } from 'ramda'
I've been migrating from
react-native-render-htmlto this new library and one of the things I noticed is that ramda dependencies are still using deep imports. I had a patch for the old library to replace all these with es6 based imports which helped a lot with getting tree-shaking to work properly.My suggestion would be to make those updates in the codebase.
e.g.
instead of
import mergeDeepRight from 'ramda/src/mergeDeepRight';use
import { mergeDeepRight } from 'ramda'