Skip to content

[Code quality] Multiple components import from barrel files causing large bundles #495

Description

@nonsobethel0-dev

Description

Many components import from barrel files (index.ts), which prevents tree-shaking and increases bundle size.

Current behavior

import { Button } from '@/components/ui' imports entire UI library.

Expected behavior

Use direct imports: import { Button } from '@/components/ui/Button'

Files

  • components/ui/index.ts barrel file
  • Various component imports

Impact

Larger than necessary bundle sizes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions