mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-12-02 16:49:06 +00:00
`lucide-solid` and `@lucide/solid` have no `"type": "module"` and point every `types` export condition at `.d.ts` files, so TypeScript's Node16/NodeNext resolution reads the declarations as CommonJS. ESM consumers then get the module object instead of the component for per-icon default imports (`import Camera from '@lucide/solid/icons/camera'`), failing with TS2604/TS2322. Emit `.d.mts` declarations next to the existing `.d.ts` files (rollup rewrites their relative imports to `.mjs`) and select them via a nested `import` condition under `types`, as lucide-react already does with `.d.mts` files. The `.d.ts` files, top-level `types` field and runtime conditions are unchanged.