-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
npm package too big for jsDelivr #4609
Comments
50 MB out of the total 57 MB is the documentation under |
+1 for cutting docs out of npm package. |
I think it's good to have the documentation with the release and I think it's weird that jsdelivr makes such an exception when other CDNs have no issues (cdnjs, unpkg.com). But I get where you're coming from. |
@gkatsev the limit is there because when serving a file from a package for the first time, we need to download and unzip the full package. The bigger it is, the higher the chance it will take too long and user's request will fail, which is why we used this limit (in most cases, even a 150 MB package would download fast enough, but "most cases" is not good enough). I understand why you would want the documentation in a release that people download manually, e.g. from GitHub, but npm is mostly used for automated installation and IMHO should only have the necessary code. |
Btw, this should be fixed by #4774. |
@gkatsev 👍 I forgot to mention it here but I added an exception for this package so it already works, but removing the docs is still a good idea. |
Well, in that case, NEVERMIND! ;) |
I'm trying to load this package from jsDelivr CDN but it fails because the package is over 50 MB. Are there any files that could be removed to reduce the package size?
The text was updated successfully, but these errors were encountered: