i am building a react component library how can i keep the bundle size very low

I am trying to build a component library for react Nothing to crazy just a simple and sing component That will take in children props and do some stuffs At first i wanted to use nextjs but i decided not to go forward as it will complicate things because of how nextjs works So i decided to stick with react now a simple empty hello world div when compiled/ builder its already 100kb and a few more lines of code its already over 1.1mb I need suggestions on what other approaches i could use Also not i haven't added css yet I am using bun builder, i dont have strength to handle webpack though with a few stuffs webpack could only save me .05mb I think i want to stick to bun bunder simplicity I need suggestions on how to keep the build very small..... Preact?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server