Skip to content

Commit fa467c2

Browse files
committed
test: allow browser indirect zod runtime dependency
1 parent 6717f8b commit fa467c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/plugins/contracts/extension-runtime-dependencies.contract.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ const OPTIONAL_UNDECLARED_RUNTIME_IMPORTS = new Map<string, Set<string>>([
1515
],
1616
]);
1717
const INDIRECT_RUNTIME_DEPENDENCIES = new Map<string, Set<string>>([
18+
[
19+
"extensions/browser",
20+
// The MCP SDK loads zod through its server/zod-compat runtime path.
21+
new Set(["zod"]),
22+
],
1823
[
1924
"extensions/whatsapp",
2025
// Baileys loads jimp as an optional peer when it needs media thumbnails.

0 commit comments

Comments
 (0)