From 947b5414064a1ab70bcd671445c3e898e18c1978 Mon Sep 17 00:00:00 2001 From: Hans Ott Date: Wed, 20 Nov 2024 16:17:09 +0100 Subject: [PATCH] Deduplicate --- library/bundler/externals.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/bundler/externals.ts b/library/bundler/externals.ts index 2e1d7a51..e515c488 100644 --- a/library/bundler/externals.ts +++ b/library/bundler/externals.ts @@ -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)); }