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

Why is jsdom now an optional dependancy ? #823

Closed
bigmonkeyboy opened this issue Feb 22, 2016 · 10 comments
Closed

Why is jsdom now an optional dependancy ? #823

bigmonkeyboy opened this issue Feb 22, 2016 · 10 comments

Comments

@bigmonkeyboy
Copy link

Adding jsdom as an optional dependancy means it gets installed most of the time... so this is no longer the tiny library it claims to be... (now 14M vs 2M previously...)

How can I not install the jsdom part ?

@jugglinmike
Copy link
Member

Relevant discussion is here: gh-773, but I'm not sure why the change from devDependencies to optionalDependencies was necessary.

@fb55
Copy link
Member

fb55 commented Feb 23, 2016

The idea was to allow failures during the build process (npm/npm#3870 and npm/npm#7864 are relevant here). This probably isn't even a problem anymore now that jsdom doesn't depend on contextify.

@bigmonkeyboy
Copy link
Author

Would be great if it could be removed... it sure adds a lot of bloat for something that isn't even used. (And especially when the docs say how small cheerio is in comparison :-)

@vavere
Copy link

vavere commented Feb 23, 2016

+1

@kfranqueiro
Copy link

+1.

Did a double-take when I saw npmjs.org show jsdom as a dependency, when I came here expressly because this isn't jsdom.

I realize (and initially suspected) it's only used for benchmarks, but it sure looks awkward and requires extra effort to prune.

@sartrey
Copy link

sartrey commented Apr 27, 2016

Why not remove this dependency (jsdom) and install it by cli in benchmark script?

It is horrible to transport jsdom (11M), some users came to complain about my package size (61M)

I tried to install cheerio with --no-optional now
but no-optional flag can not be inherited

@sartrey
Copy link

sartrey commented Apr 27, 2016

#853
I'v commit a fix, would you please review it
@fb55

@DinoChiesa
Copy link

Please fix! This is an annoying and unnecessary issue.

@knolleary
Copy link

Looks like this has been fixed in master - 79d4e5e - eagerly awaiting the release of 0.21. 👍

@matthewmueller
Copy link
Member

0.22.0 doesn't include jsdom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

9 participants