Skip to content

[Enhancement] include lodash method per function instead of the whole lib #7

@maxceem

Description

@maxceem

Currently, we are trying to reduce the bundle size of connect app appirio-tech/connect-app#1629

One of the steps is avoid including the whole lodash library as
import _ from 'lodash'
in favour of including only necessary methods as following
import omit from 'lodash'

As topcoder-react-utils has become a dependency of connect app it would be great if it also follows the same practice as otherwise, it will bring the whole lodash lib to the bundle if we use GenericLink in connect app.

I see only one place where lodash is invoked in topcoder-react-utils https://github.com/topcoder-platform/topcoder-react-utils/blob/master/src/shared/components/GenericLink.jsx#L11

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