Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use modular lodash package #913

Merged
merged 1 commit into from
Aug 26, 2016
Merged

Use modular lodash package #913

merged 1 commit into from
Aug 26, 2016

Conversation

billyjanitsch
Copy link
Contributor

As of lodash 4.14.0, individual packages (e.g. lodash.foreach) are zero-dependency modules (see the changelog), meaning that if you install several of them, they do not share any code.

This completely negates (and actually worsens) the bundle size savings introduced in #864, since cheerio now depends on so many individual method packages. The solution is to use the modular version of lodash (installing lodash and importing from lodash/method rather than from the lodash monolith) as mentioned here.

@ianstormtaylor
Copy link

This is awesome!

@coveralls
Copy link

coveralls commented Aug 25, 2016

Coverage Status

Coverage remained the same at 98.833% when pulling 3628327 on billyjanitsch:lodash into aa90399 on cheeriojs:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.833% when pulling 3628327 on billyjanitsch:lodash into aa90399 on cheeriojs:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.833% when pulling 3628327 on billyjanitsch:lodash into aa90399 on cheeriojs:master.

@fb55 fb55 merged commit 765cdaa into cheeriojs:master Aug 26, 2016
@fb55
Copy link
Member

fb55 commented Aug 26, 2016

Thanks a lot!

@billyjanitsch billyjanitsch mentioned this pull request Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants