Skip to content

replace lodash with lodash.difference #405

Open
@hcourt

Description

@hcourt

Lodash is a very large library that impacts performance of downstream projects, and importing it in its entirety is no longer required. This library should be changed to use a lodash.* package like so:

Proposed changes

https://github.com/styled-components/babel-plugin-styled-components/blob/main/src/minify/index.js#L1

import difference from 'lodash.difference'

https://github.com/styled-components/babel-plugin-styled-components/blob/main/package.json#L37

    "lodash.difference": "^4.5.0",

I have a local branch which does this that I would be happy to submit, but PR creation here is disabled.

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