Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/wxt/src/core/utils/content-scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export function hashContentScriptOptions(
Object.entries(withDefaults)
// Sort any arrays so their values are consistent
.map<[string, unknown]>(([key, value]) => {
if (Array.isArray(value)) return [key, value.sort()];
// Keeping matches unsorted gives developers more control on what users see in extension stores
if (Array.isArray(value) && key !== "matches") return [key, value.sort()];
else return [key, value];
})
// Sort all the fields alphabetically
Expand Down