Skip to content

Commit

Permalink
fix: pass war through a set to dedupe (#625)
Browse files Browse the repository at this point in the history
* fix: pass war through a set to dedupe

* add changeset
  • Loading branch information
jacksteamdev authored Jan 13, 2023
1 parent ea03373 commit 06c9c86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-years-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crxjs/vite-plugin": patch
---

fix: pass war through a set to dedupe
2 changes: 1 addition & 1 deletion packages/vite-plugin/src/node/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function manifestFiles(
return r
}),
)
webAccessibleResources = resources.flat().filter(isString)
webAccessibleResources = [...new Set(resources.flat())].filter(isString)
}

return {
Expand Down

0 comments on commit 06c9c86

Please sign in to comment.