Is react-table tree shakeable?
Hey I was running my bundle analyze for my Next.js application and was seeing a ~50kb bundle for react-table. Is this an expected size? I would think it would be much smaller, though I am importing quite a few function. Lmk if I'm being unreasonable or missing something. It's just the only modules in my project that end up being that large are ones that have known issues tree shaking like react-icons or react-spring.

2 Replies
graceful-blue•2y ago
👋 @mattquinn did u find the issue ? got the same bundle size
the doc says ~14kb and I really don't use all the api (gzipped mode? so it's not rly tree-shakable?)
foreign-sapphireOP•2y ago
I did not! I'll probably end up looking for alternatives at some point because this library drives up my bundle size quite a bit and my forms are pretty simple.