-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Make node-forge an optional dependency #8532
Comments
What about the third option - migrate from
If this makes sense, I am willing to submit a PR. Of course, this option can be taken together with option 1 or option 2, but I am afraid I don't have much time to work on them :( |
Interesting. It looks like the library is quite actively maintained. @winderica this seems like a good option to reduce the size, we could discuss it in a PR to see how it works. |
I took some data. before #8584 (d1ba059)
with #8584 (ac680a1)
with #8584 (ac680a1) and removed
|
Thanks for this data @sapphi-red. Maybe we should wait for swapping node-forge once we can drop Node 14? The package size diff is still not bad though (a ~6% drop). |
That makes sense to me. |
+1 for making
|
Clear and concise description of the problem
@sapphi-red made Terser an optional dep with:
@TrySound suggested that we do the same with node-forge. It is a big dependency (1.5MB) and it is only needed when creating an HTTP cert:
Suggested solution
We have two options:
I think 2. is better here. Opening the issue in case someone wants to work on it, I'll get to it if not before v3.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: