mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-02-24 04:29:40 +01:00
* 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>
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.