mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-05-18 11:56:26 +02:00
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