Open PeterlitsZo opened 8 months ago
Possibly related to https://github.com/vitejs/vite/issues/8237
Just a question: could we import a icon by import ChevronDownSquare from "lucide-solid/chevron-down-square"
?
@PeterlitsZo Hmm not possible at the moment. Solid currently requires to have a bundled ESM file.
any news on this? having the same problem.
I have the same problem. As soon I load one icon all icons are loaded in dev mode and my computer starts to struggle.
Package
Version
^0.336.0
Browser
Operating system
Description
When I am using
lucide-solid
in my SolidStart project, I find that in the dev mode, it will request too many requests and let me must wait for > 1min. (I develop it in the remote machine, which is an Linux machine, and using Chrome / Arc / Firefox to interact with the project)Here is the section of package.json of
lucide-solid
:It looks like it just using the "./dist/source/lucide-solid.js", which has bad performance when in development.
Steps to reproduce
lucide-solid
in any solid project.import { CheckCircle, Circle, Trash2 } from 'lucide-solid';
.Here I am using the SolidStart framework and Bun so you can:
Then you can install the
lucide-solid
and import it in any file.Checklist