Skip to content
public-library›Rules›React›Avoid loading large barrel files

Avoid loading large barrel files

When a package's entry file re-exports many modules, make sure only the modules you use are loaded. Use the framework's import optimization when available, or import from the specific module path.

In the full rule