mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
94c9c1d4c3
Headless React Native wrapper for CopilotKit. Provides a lightweight CopilotKitProvider and re-exports platform-agnostic hooks from react-core without pulling web dependencies (no DOM, CSS, Radix, Lit, A2UI). Includes XHR-based streaming fetch polyfill for Hermes and granular polyfills for streams, encoding, crypto, DOM, and location APIs.
26 lines
519 B
TypeScript
26 lines
519 B
TypeScript
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig({
|
|
entry: [
|
|
"src/index.ts",
|
|
"src/polyfills.ts",
|
|
"src/polyfills/streams.ts",
|
|
"src/polyfills/encoding.ts",
|
|
"src/polyfills/crypto.ts",
|
|
"src/polyfills/dom.ts",
|
|
"src/polyfills/location.ts",
|
|
],
|
|
format: ["esm", "cjs"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
target: "es2022",
|
|
outDir: "dist",
|
|
external: [
|
|
"react",
|
|
"react-native",
|
|
"@copilotkit/react-core",
|
|
"@copilotkit/core",
|
|
"@copilotkit/shared",
|
|
],
|
|
});
|