forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolyfills.ts
More file actions
23 lines (21 loc) · 877 Bytes
/
Copy pathpolyfills.ts
File metadata and controls
23 lines (21 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* All polyfills required for CopilotKit to work in React Native.
*
* These are auto-imported when `@copilotkit/react-native` is loaded.
* A manual `import "@copilotkit/react-native/polyfills"` is no longer
* required but still works for advanced / selective bootstrap scenarios.
*
* For granular control, import individual polyfills instead:
* import "@copilotkit/react-native/polyfills/streams";
* import "@copilotkit/react-native/polyfills/encoding";
* import "@copilotkit/react-native/polyfills/crypto";
* import "@copilotkit/react-native/polyfills/dom";
* import "@copilotkit/react-native/polyfills/location";
*/
import "./polyfills/streams";
import "./polyfills/encoding";
import "./polyfills/crypto";
import "./polyfills/dom";
import "./polyfills/location";
import { installStreamingFetch } from "./streaming-fetch";
installStreamingFetch();