-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comments
Relevant discussion is here: gh-773, but I'm not sure why the change from |
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. |
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 :-) |
+1 |
+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. |
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 |
Please fix! This is an annoying and unnecessary issue. |
Looks like this has been fixed in master - 79d4e5e - eagerly awaiting the release of 0.21. 👍 |
|
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 ?
The text was updated successfully, but these errors were encountered: