Over 60 unused shadcn/ui components bloat the bundle #4
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/freshfind-marketmap#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The project currently includes 50+ shadcn/ui component files in
src/components/ui/(accordion, alert-dialog, alert, aspect-ratio, avatar, badge, breadcrumb, carousel, chart, checkbox, collapsible, command, context-menu, dialog, drawer, dropdown-menu, empty, field, form, hover-card, input-group, input-otp, input, item, kbd, label, menubar, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, select, separator, sheet, sidebar, skeleton, slider, sonner, spinner, switch, table, tabs, textarea, toggle-group, toggle, tooltip, etc.).Of these, only a small subset are actually imported and used in the application — the rest are dead code that:
Suggested Approach
package.jsoncomponents.jsonto track the smaller setRelated Files
src/components/ui/— 50+ component filespackage.json— many unused dependencies (input-otp, recharts, cmdk, vaul, react-day-picker, etc.)package-lock.json— bloated by unused transitive deps