Skip to content

Importing lodash accounts for more than 50% of this package #331

@heygrady

Description

@heygrady

https://bundlephobia.com/[email protected]

screen shot 2018-10-15 at 2 38 23 pm

  • self 41%
  • lodash.curry 35%
  • lodash.camelcase 20%

There are much smaller libraries with similar enough APIs

I put together a quick comparison: https://repl.it/@heygrady/camelcase

There was an older issue (#308) about some newer versions of dependencies not working in older browsers. However, that is an issue of bundling. If this package utilized something like rollup to bundle dependencies it wouldn't matter how the imported dependency was written.

It should be possible to make this package around 50% smaller by dropping these weighty dependencies and borrowing the bundling solution that the main redux library uses.

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