Locally, never ever use barrel files. If you manage the entire project, just import the specific file you need.
However when exporting a public/published module it can become onerous to ask the user to import 7 files instead of 7 items from one module.
In a perfect world, this would not be much of an issue because tools would cache these resolutions/imports and their treeshaken code. In the current world, you could prepackage your project even on Node, so that there’s only one file to load, and no extra unused code.