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
The main reason I can find is build time, dev build time, and test time as well as maintainability of the extra code.
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.