Skip to content

Expect to reduce the production bundle size when this package is included #58

@samarpanda

Description

@samarpanda

EXPECTED BEHAVIOR

Pretty nice lib thanks for publishing. Recently included this in one of my project to create typography theme.
But noticed that this increased my production bundle size. Digging dipper found that lodash is one of the core dependency here. That might be causing this issue.

_What's the behavior you're expecting to see?

Expecting to add specific methods of lodash instead of including the complete package. So, the production bundle size can be reduced a lot.

ACTUAL BEHAVIOR

Scope of further reducing the production bundle size.

STEPS TO REPRODUCE

Include this in any of the project. Compare prior and after including styled-components-modifiers. You can easy find the bundle will be increased substantially.

SUGGESTED SOLUTION

Wondering if we need the complete lodash package. Haven't gone through the source code. But feels like we can use specific methods of lodash as needed. So, it can substantially reduce the build size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions