From 1ed516d980cd4b540418480d8cae4c07757fb94c Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Tue, 10 Sep 2024 21:13:57 +0200 Subject: [PATCH] Exclude `@noble/hashes` from Keycloak JS distribution (#32783) Closes #32782 Signed-off-by: Jon Koops --- js/libs/keycloak-js/rollup.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/libs/keycloak-js/rollup.config.ts b/js/libs/keycloak-js/rollup.config.ts index 4e4009787e..8d2a54cf02 100644 --- a/js/libs/keycloak-js/rollup.config.ts +++ b/js/libs/keycloak-js/rollup.config.ts @@ -39,7 +39,7 @@ function defineOptions({ file: path.join(targetDir, `${file}.mjs`), }, ], - external: ["@noble/hashes", "jwt-decode"], + external: ["@noble/hashes/sha256", "jwt-decode"], }, // Legacy Universal Module Definition, or “UMD”, with inlined dependencies. {