Repository navigation
fix(auto-icons): dedupe merged icon sizes to prevent generating the same size multiple times - #2493
Merged
aklinker1 merged 1 commit intoAug 1, 2026
Conversation
…tion Fixes wxt-dev#2491. defu merges user-provided sizes with the default array via concatenation rather than union, so sizes overlapping a default (128, 48, 32, 16) were processed and written twice. This deduplicates the merged array once via Set before it's consumed by the manifest, build, and public-paths hooks. Additive behavior is preserved (custom sizes still extend defaults) - no breaking change.
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aklinker1
approved these changes
Aug 1, 2026
aklinker1
left a comment
Member
There was a problem hiding this comment.
Awesome, thanks for the fix! I'll publish later today.
aklinker1
enabled auto-merge (squash)
August 1, 2026 15:56
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2493 +/- ##
==========================================
+ Coverage 79.35% 79.40% +0.05%
==========================================
Files 134 134
Lines 4005 4006 +1
Branches 910 910
==========================================
+ Hits 3178 3181 +3
+ Misses 736 734 -2
Partials 91 91 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/is-background
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/runner
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
aklinker1
disabled auto-merge
August 1, 2026 15:59
Contributor
|
Thanks for helping make WXT better! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
defumerges user-providedsizeswith the default array via concatenation rather than union, so sizes overlapping a default (128, 48, 32, 16) were processed and written twice — duplicate icons generated and duplicate manifest entries. This dedupes the merged array once viaSetbefore it's consumed by the manifest, build, and public-paths hooks. Additive behavior is preserved (custom sizes still extend defaults) — no breaking change.Manual Testing
bun run --filter @wxt-dev/auto-icons test— 21/21 passing, including new regression tests for overlapping size configswxtdev and production build) thaticons/output contains exactly one file per unique size, andmanifest.jsonhas no duplicate icon keysRelated Issue
This PR closes #2491