hashgraph / hedera-wallet-connect

This package is a messaging relay between decentralized applications and wallets in Hedera network based on Wallet Connect relays.
Apache License 2.0
6 stars 15 forks source link

Reduce the bundle size #191

Open justynspooner opened 5 days ago

justynspooner commented 5 days ago

The issue

Screenshot 2024-07-01 at 16 06 52

The bundle size is currently 2.4MB (631.54KB zipped) https://bundlephobia.com/package/@hashgraph/hedera-wallet-connect@1.2.0

Describe the solution you'd like

A package which works with modern bundlers to allow for optimisations such as tree shaking to reduce the bundle size as small as possible

Additional context

This issue heavily relies upon https://github.com/hashgraph/hedera-sdk-js/issues/1719 but wanted to track here as well as Hedera Wallet Connect is likely to get the most benefit from the improvement due to the code predominantly running client side. The faster people can download this package into their browsers, the smoother their experience will be.

tmctl commented 3 days ago

the bundler is esbuild which is a modern bundler, though maybe settings need to be changed?

also open to another bundler as well