From 5b085bbcdf9862322c5c89f51206f988e2eee23b Mon Sep 17 00:00:00 2001 From: artus9033 Date: Tue, 24 Mar 2026 23:24:16 +0100 Subject: [PATCH] fix: polyfills docs missing package manager tabs component --- .../src/docs/{polyfills.md => polyfills.mdx} | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) rename website/src/docs/{polyfills.md => polyfills.mdx} (83%) diff --git a/website/src/docs/polyfills.md b/website/src/docs/polyfills.mdx similarity index 83% rename from website/src/docs/polyfills.md rename to website/src/docs/polyfills.mdx index 4d996f15..81c86277 100644 --- a/website/src/docs/polyfills.md +++ b/website/src/docs/polyfills.mdx @@ -1,3 +1,5 @@ +import { PackageManagerTabs } from '@theme' + # Polyfills Several functions that are internally used by the AI SDK might not be available in the React Native runtime depending on your configuration and the target platform. @@ -16,13 +18,11 @@ import structuredClone from '@ungap/structured-clone' if (Platform.OS !== 'web') { const setupPolyfills = async () => { - const { polyfillGlobal } = await import( - 'react-native/Libraries/Utilities/PolyfillFunctions' - ) + const { polyfillGlobal } = + await import('react-native/Libraries/Utilities/PolyfillFunctions') - const { TextEncoderStream, TextDecoderStream } = await import( - '@stardazed/streams-text-encoding' - ) + const { TextEncoderStream, TextDecoderStream } = + await import('@stardazed/streams-text-encoding') if (!('structuredClone' in global)) { polyfillGlobal('structuredClone', () => structuredClone) @@ -65,13 +65,11 @@ import { if (Platform.OS !== 'web') { const setupPolyfills = async () => { - const { polyfillGlobal } = await import( - 'react-native/Libraries/Utilities/PolyfillFunctions' - ) + const { polyfillGlobal } = + await import('react-native/Libraries/Utilities/PolyfillFunctions') - const { TextEncoderStream, TextDecoderStream } = await import( - '@stardazed/streams-text-encoding' - ) + const { TextEncoderStream, TextDecoderStream } = + await import('@stardazed/streams-text-encoding') if (!('structuredClone' in global)) { polyfillGlobal('structuredClone', () => structuredClone)