Skip to content

Use es6 imports for ramda #49

Description

@andrejpavlovic

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions