mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
de656faeaa
Addresses FAC-83 by preventing Metro bundler from resolving optional Expo modules and Node.js-only packages in React Native client builds. Root Cause: Metro bundler resolves ALL module specifiers in the dependency graph at build time. Dynamic import() and external marking don't prevent Metro from traversing the import graph. Solution: 1. Expo Modules - Move behind @copilotkit/react-native/attachments subpath 2. Telemetry - Isolate behind @copilotkit/shared/telemetry with conditional node/default exports Co-authored-by: Implementation fixes for moduleResolution and CJS exports verification