diff options
Diffstat (limited to '')
-rw-r--r-- | packages/bun-framework-next/server-polyfills.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/bun-framework-next/server-polyfills.tsx b/packages/bun-framework-next/server-polyfills.tsx index 57960e4fa..f0a2b5c3a 100644 --- a/packages/bun-framework-next/server-polyfills.tsx +++ b/packages/bun-framework-next/server-polyfills.tsx @@ -2,7 +2,7 @@ globalThis.global = globalThis; import { Buffer } from "buffer"; import { URL } from "url-polyfill"; -import { TextEncoder, TextDecoder } from "fast-text-encoding"; +import { TextEncoder, TextDecoder } from "./text-encoder-polyfill"; import * as React from "react"; const onlyChildPolyfill = React.Children.only; @@ -21,5 +21,6 @@ React.Children.only = function (children) { globalThis.Buffer = Buffer; globalThis.URL = URL; +// @ts-expect-error encodeInto is missing in our polyfill globalThis.TextEncoder ||= TextEncoder; globalThis.TextDecoder ||= TextDecoder; |