lucide/docs/guide
Jacek Tomaszewski 7a68e10b12
fix(lucide-react-native): remove icons namespace export to enable tree-shaking (#3868)
* fix(lucide-react-native): remove icons namespace export to enable tree-shaking

The `export * as icons from './icons'` statement defeats tree-shaking
because bundlers cannot determine which exports from the namespace are
actually used at build time. This causes all 1600+ icons to be included
in the final bundle even when only a few are imported.

This change removes the namespace re-export while keeping all individual
icon exports available via `export * from './icons'`.

BREAKING CHANGE: The `icons` namespace export is no longer available.
Users should import icons directly: `import { Activity } from 'lucide-react-native'`
instead of `import { icons } from 'lucide-react-native'; icons.Activity`.

* Add icons entry file to improve treeshaking

* Format code

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2025-12-18 11:44:26 +01:00
..
advanced Update names in docs (#3184) 2025-05-03 09:28:29 +02:00
basics correct typo in icon size example (#1634) 2023-10-23 21:02:05 +02:00
design docs(design-guide): added bad examples for 2px rule (#2879) 2025-06-21 08:47:28 +02:00
packages fix(lucide-react-native): remove icons namespace export to enable tree-shaking (#3868) 2025-12-18 11:44:26 +01:00
comparison.md New site! 🚀 (#1275) 2023-06-04 16:59:38 +02:00
how-to-use-icons.md Add Lucide basics guide on site (#1521) 2023-10-03 08:21:01 +02:00
index.md Update index.md (#3673) 2025-10-10 15:47:55 +02:00
installation.md Replace pnpm install with pnpm add across documentation. (#3735) 2025-10-26 17:01:12 +01:00