timdaub pfp
timdaub
@timdaub.eth
Kiwi News bundle.js. It's sadly 2MB big and I'd like to reduce its size. But I don't see any obvious optimizations.
9 replies
1 recast
2 reactions

Phil Cockfield pfp
Phil Cockfield
@pjc
I'm playing a similar code-splitting game with "@farcaster/hub-web" right now! I feel 'ya @timdaub.eth !!! Bundle size explosion can be like playing whack-a-mole. I find knocking it in the head early is the easiest way as untangling later become disproportionately harder and harder for me to get my head around.
1 reply
0 recast
1 reaction

Adrian pfp
Adrian
@maurerbot
You don’t need to include all of ethers. You can include just it’s sub packages that you use. Also, consider using something like rainbow kit or connect kit instead of 3 wallet libs
1 reply
0 recast
0 reaction

Matthew pfp
Matthew
@matthew
Are you using Next 13? that’s one alternative idea also wonder what rainbowkit size v connectkit would be
1 reply
0 recast
0 reaction

grin pfp
grin
@grin
just delete it all. that site doesn't need any js
1 reply
0 recast
0 reaction

pugson pfp
pugson
@pugson
https://www.framer.com/motion/guide-reduce-bundle-size/
1 reply
0 recast
0 reaction

Joe Toledano pfp
Joe Toledano
@joetoledano
Can you migrate from Ethers to Viem?
1 reply
0 recast
0 reaction

Colin pfp
Colin
@colin
are you lazy loading? eg loading connectkit lazily when needed since it's massive
1 reply
0 recast
0 reaction

Charles Yoo-Naut pfp
Charles Yoo-Naut
@cnaut
Are multiple dependencies loading different versions of BigNumber? This was something that was bothering me but couldn't figure out a good solution
0 reply
0 recast
1 reaction

wizzard pfp
wizzard
@wz
i think native bigint is available pretty much everywhere rn?
0 reply
0 recast
0 reaction