Skip to content

Comments

⚡ Bolt: Optimize bundle size by removing static icon imports#29

Open
sshahriazz wants to merge 1 commit intomainfrom
bolt/iconify-optimization-16031859380534923330
Open

⚡ Bolt: Optimize bundle size by removing static icon imports#29
sshahriazz wants to merge 1 commit intomainfrom
bolt/iconify-optimization-16031859380534923330

Conversation

@sshahriazz
Copy link
Collaborator

💡 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 IconifyIcon usages in client/src use the required prefix:name format, making the removed fuzzy search logic unnecessary. Addressed reviewer concern about Google icon regression by verifying SocialAuth uses Image component (unrelated to this change).


PR created automatically by Jules for task 16031859380534923330 started by @sshahriazz

- 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>
@google-labs-jules
Copy link

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant