widget icon indicating copy to clipboard operation
widget copied to clipboard

Make widget modular

Open Systerr opened this issue 1 year ago • 2 comments

Now widget contains bitcoin, solana and evm support. Sadly all this support shipped on one package. In some cases (a lot of cases i believe) only one network is needed and other just a lot of unused bytes Will be amazing to install only necessary network support by moving it to optional-dependencies and widget can detect what options should be enabled Thank you!

Systerr avatar Oct 21 '24 20:10 Systerr

Hey, we also had this idea, just didn't have time to properly address it. You can disable chains you don't want to see, though. https://docs.li.fi/integrate-li.fi-widget/configure-widget#configure-allow-and-deny-options

The footprint should be minimal (100-200kb per ecosystem). Anyway, I completely agree with you and we will make it more modular :) Thank you!

chybisov avatar Oct 22 '24 08:10 chybisov

Now widget contains bitcoin, solana and evm support. Sadly all this support shipped on one package. In some cases (a lot of cases i believe) only one network is needed and other just a lot of unused bytes Will be amazing to install only necessary network support by moving it to optional-dependencies and widget can detect what options should be enabled Thank you!

Totally agree, can't wait to see some progress regarding that!

RAMTO avatar Feb 26 '25 07:02 RAMTO