-
Notifications
You must be signed in to change notification settings - Fork 14
(question) possible to reduce size of package + dependencies? #3
Comments
There seems to be some decent wins that can be done by separating out a few of the The two biggest culprits seem to be We can poke around a bit with the npm dependency / build system to try and make |
Perhaps as mentioned in #2 (comment), we can just remove |
The As for
Let us know if this is sufficient for you use cases. |
Thanks a lot, this works! The package size now decreased to around 35MB instead of 49MB. This gives plenty of room for other stuff. It's still quite big, but I guess gRPC is quite heavy as well. By the way, if you use serverless and the serverless-webpack plugin, you can get it working easily by adding this in serverless.yml:
|
First of all great work on this SDK! It's super easy, works great. I have set it up in an AWS Lambda serverless function, which also works (yay for serverless blockchain communication!), but the package size is quite big: almost 50MB zipped. The AWS Lambda limit is exactly 50MB zipped, so it barely fits inside a Lambda function. However, when you need a couple more dependencies you already have a problem. This is probably due to gRPC and its many many subdependencies.
Would it be possible to create a minimal version, check if all dependencies are really needed or something so the package size can be decreased?
Thanks!
The text was updated successfully, but these errors were encountered: