Are barrel files a problem for tree shaking when defining internal boundaries?
I use barrel files to expose a small API for each domain and lint rules to discourage deep imports. Code inside a domain imports its own modules directly.…
I use barrel files to expose a small API for each domain and lint rules to discourage deep imports. Code inside a domain imports its own modules directly.…
I've seen more developers warn against barrel files because they can interfere with tree-shaking, increase build or test times, and sometimes contribute to circular dependencies. In my projects,…