Skip to content

Commit

Permalink
Deduplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Nov 20, 2024
1 parent 947b06d commit 947b541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/bundler/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export function externals() {
wrapper.wrap(hooks);
});

return ["@aikidosec/firewall"].concat(
const packages = ["@aikidosec/firewall"].concat(
hooks.getPackages().map((pkg) => pkg.getName())
);

// Remove duplicates
return Array.from(new Set(packages));
}

0 comments on commit 947b541

Please sign in to comment.