tdm
TTCTheo's Typesafe Cult
•Created by tdm on 10/27/2024 in #questions
Barrel files?
Is it worth migrating a Next.js repo off of barrel files?
I don't think they should impact bundle size from what I've read as long as you have
sideEffects: false,
in package.json
. But if there's edge cases where they do, this would be a good reason.
The main reason I can find is build time, dev build time, and test time as well as maintainability of the extra code.1 replies