Files
lucide/packages/lucide-preact
Colonel Jade 4880a2673b fix(lucide-preact): add conditional exports map for ESM/CJS resolution (#4198)
Without an exports map, runtimes that follow the Node.js package resolution
spec (Node.js, Bun) ignore the non-standard 'module' field and fall back to
'main' (CJS), even when the importing code is pure ESM. Since 1.0.0, the
package uses useContext and useMemo from preact/hooks internally, making this
a runtime-breaking issue: the CJS build loads a separate preact/hooks instance
which crashes on every icon render with 'undefined is not an object'.

Fixes #4196
2026-03-24 09:07:36 +01:00
..
2026-02-06 11:55:03 +01:00
2024-02-01 14:38:21 +01:00

Lucide icon library for Preact applications.

Lucide icon library for Preact applications.

npm NPM Downloads GitHub

About · Icons · Documentation · License

Lucide Preact

Implementation of the Lucide icon library for Preact applications.

Installation

pnpm add lucide-preact
npm install lucide-preact
yarn add lucide-preact
bun add lucide-preact

Documentation

For full documentation, visit lucide.dev

Community

Join the Discord server to chat with the maintainers and other users.

License

Lucide is licensed under the ISC license. See LICENSE.

Sponsors

Powered by Vercel

DigitalOcean Referral Badge

Awesome backers 🍺

pdfme – Open-source PDF generation library built with TypeScript and React. Pax Historia – An alternate history sandbox game

Backers

Fina Money – Modular Finance Tracker

Other contributors 💸

You can find all our past and non-recurring financial contributors at our Open Collective page.