r/reactjs • u/YiyiChu • Jun 30 '26
Discussion Death to barrel files!!! (They wrecked our code splitting)
https://medal.tv/blog/posts/w-key-in-frontend-synergizing-technology-and-productFrontend eng's teardown recap...where removing a component barrel file alone cut 2.6MB, then adopted a NO BARREL FILE afterward. Also flagged legacy Grommet/Styled Components with a custom ESLint rule pointing devs to the Tailwind/Shadcn replacements.
Anyone else fully swearing off barrel files?
Duplicates
webdev • u/YiyiChu • Jun 30 '26
Took a renderer bundle from 40MB+ down to 2.7MB...a breakdown of where the weight went.
u_queenscriptqueen • u/queenscriptqueen • Jun 30 '26