Improve dev server performance with vite-plugin-transform-lucide-imports #3665
ieedan
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
|
Hi, Contrary to yours though, it minimizes dependencies by detecting imports through a regex instead of parsing the AST, despite the latter being notably a more reliable technique. Anyways, just wanted to let you know, feel free to keep maintaining your version! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As mentioned in #2375 the easiest way to get better dev server performance previously was to just import all the icons using default imports.
This kinda sucks cause LLMs really like to use named imports and they are just generally more ergonomic. My solution to this was to build a plugin to transform all my named imports into default imports https://github.com/ieedan/vite-plugin-transform-lucide-imports
Before
After
demo.mp4
Beta Was this translation helpful? Give feedback.
All reactions