hashgraph / hedera-sdk-js

Hedera™ Hashgraph SDK for JavaScript/TypeScript
https://docs.hedera.com/guides/docs/sdks
Apache License 2.0
254 stars 131 forks source link

Modernize and improve bundle size #1719

Open kantorcodes opened 11 months ago

kantorcodes commented 11 months ago

Problem

At present, the bundle is a whooping 1.4 megabytes big, or 296KB.

For most modern webapps that have to stay competitive and fast, this is a huge impediment. Users are forced to download a lot of unneeded JavaScript.

5C60F757-66C2-4D8E-A91C-17933AC378F7

Solution

Alternatively

Alternatives

No response

ochikov commented 11 months ago

Hey @kantorcodes, Thank you for your feedback. For sure we need to work in that direction. This means a lot of breaking changes. Keep in mind that such kind of changes might be implemented and included in v3 of the SDK. I will keep you updated as well about our plans and what might be done for your suggestions.

kantorcodes commented 8 months ago

Hey @kantorcodes, Thank you for your feedback. For sure we need to work in that direction. This means a lot of breaking changes. Keep in mind that such kind of changes might be implemented and included in v3 of the SDK. I will keep you updated as well about our plans and what might be done for your suggestions.

Thanks! Keen to hear how it goes

justynspooner commented 4 days ago

Are there any updates on this? The @hashgraph/hedera-wallet-connect package would benefit greatly from being able to tree shake and optimise bundles for client side browser usage.