Exclude @noble/hashes from Keycloak JS distribution (#32783)

Closes #32782

Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
Jon Koops 2024-09-10 21:13:57 +02:00 committed by GitHub
parent d26a514e8e
commit 1ed516d980
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ function defineOptions({
file: path.join(targetDir, `${file}.mjs`), 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. // Legacy Universal Module Definition, or “UMD”, with inlined dependencies.
{ {