Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Barrel files? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
16mo ago
tdm
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,
sideEffects: false,
in
package.json
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
.
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
VSCode Import Autocomplete Purgatory (Relative, absolute, and barrel paths)
TTC
Theo's Typesafe Cult / questions
2y ago
missing files
TTC
Theo's Typesafe Cult / questions
3y ago
UploadThing: Overwrite files
TTC
Theo's Typesafe Cult / questions
9mo ago
Uploadthing Delete Files
TTC
Theo's Typesafe Cult / questions
16mo ago