3 ms·
There are typically useful ways (tools) in most bundlers to tree shake barrel files. Libraries also differ in how tree shakable they are. Personally I think th
by TheFragenTaken 3y ago
There are typically useful ways (tools) in most bundlers to tree shake barrel files. Libraries also differ in how tree shakable they are.
Personally I think the readability of having few import lines from shared barrels, compared to a forest of lines, are very useful.
- padjo 3y agoI find that I essentially never look at the imports anymore, it’s all handled automatically for me. So there could be one line or a hundred lines I don’t care and just scroll past. I’m sure I could get an editor plugin to auto fold imports too
- jacobr 3y agoIt’s built in to VS Code, see editor.foldingImportsByDefault.