lucide/docs
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
..
.vitepress fix and unify color-picker font-size (#3889) 2025-12-15 14:59:14 +01:00
guide fix(lucide-react-native): remove icons namespace export to enable tree-shaking (#3868) 2025-12-18 11:44:26 +01:00
icons chore(metadata): Adjust navigation category (#3461) 2025-11-21 14:10:05 +01:00
images docs(design-guide): added bad examples for 2px rule (#2879) 2025-06-21 08:47:28 +02:00
public feat(docs): added lucide-rails third-party package (#3769) 2025-11-17 09:32:52 +01:00
scripts feat(site): add brand stop words to icon search (#3824) 2025-12-05 14:18:46 +01:00
code-of-conduct.md New site! 🚀 (#1275) 2023-06-04 16:59:38 +02:00
contributing.md New site! 🚀 (#1275) 2023-06-04 16:59:38 +02:00
index.md chore(site): Update vitepress to 1.3.1 (#2377) 2024-08-23 10:28:37 +02:00
license.md Site improvements and update site dependencies (#1805) 2024-01-16 16:22:09 +01:00
nitro.config.ts chore(docs): Update vitepress deps (#3470) 2025-07-31 11:45:59 +02:00
package.json chore(repo): Update Node version and overal cleanup (#3861) 2025-12-10 11:06:48 +01:00
packages.md Showcase page for the website (#1604) 2023-10-20 13:45:47 +02:00
README.md Adjust name from "data-lucide-name" to "data-lucide" in documentation & vitepress config adjusted (#1551) 2023-09-04 16:02:34 +02:00
showcase.md Showcase page for the website (#1604) 2023-10-20 13:45:47 +02:00
tsconfig.json docs(icons): External Lucide icons like from lab on lucide.dev (#2194) 2024-06-25 09:56:55 +02:00
vercel.json Add cache header site assets (#1801) 2024-01-13 15:32:18 +01:00

Lucide Docs website

The Lucide docs website is built with Vitepress: https://vitepress.dev/ This is Markdown-based documentation powered by Vue.

Development

# Install dependencies
pnpm install
# Start docs dev server
pnpm docs:dev

# Start api dev server
pnpm dev

Build

# Build docs
pnpm docs:build
# Build api
pnpm build:api

Components

See .vitepress directory.