Barrels and Barrel Imports in Typescript
· 2 min read
Prompted by seeing the term "barrel imports" in the MUI docs where they suggest avoiding them because they slow down rebuilds during development. (Tree shaking means they have no impact on prod builds.)
Based on a google search for "barrel imports", they are considered an anti-pattern, so it's not solely a MUI problem.