⚡ Bolt: Optimize bundle size by removing static icon imports#29
⚡ Bolt: Optimize bundle size by removing static icon imports#29sshahriazz wants to merge 1 commit intomainfrom
Conversation
- Removed large `@iconify-json/*` dependencies to reduce bundle size. - Updated `IconifyIcon` to use `@iconify/react` dynamic loading. - Removed custom fuzzy search logic for icons (all usages verified to use `prefix:name` format). - Verified frontend functionality with Playwright. Co-authored-by: sshahriazz <34005640+sshahriazz@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: Replaced static imports of large Iconify JSON datasets with dynamic loading using
@iconify/react.🎯 Why: The static imports included thousands of unused icons in the client bundle, causing significant bloat.
📊 Impact: Expected to reduce the client bundle size by several megabytes (depending on how many sets were fully imported).
🔬 Measurement: Verified that icons still render using a Playwright script. Confirmed that all
IconifyIconusages inclient/srcuse the requiredprefix:nameformat, making the removed fuzzy search logic unnecessary. Addressed reviewer concern about Google icon regression by verifyingSocialAuthusesImagecomponent (unrelated to this change).PR created automatically by Jules for task 16031859380534923330 started by @sshahriazz