From 7f42be209a8f700873a8df0e6ce7f57d389e6ad6 Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Fri, 18 Oct 2024 14:33:28 -0700 Subject: [PATCH] chore(ai): add size limits (#5918) --- packages/react-ai/package.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/react-ai/package.json b/packages/react-ai/package.json index 1ee47e296b6..1e203d13f7c 100644 --- a/packages/react-ai/package.json +++ b/packages/react-ai/package.json @@ -55,5 +55,19 @@ "devDependencies": { "@types/jest-when": "^3.5.0", "jest-when": "^3.5.1" - } + }, + "size-limit": [ + { + "name": "AIConversation", + "path": "dist/esm/index.mjs", + "import": "{ AIConversation }", + "limit": "25 kB" + }, + { + "name": "createAIConversation", + "path": "dist/esm/index.mjs", + "import": "{ createAIConversation }", + "limit": "7 kB" + } + ] }