diff options
Diffstat (limited to 'packages/bun-framework-next/polyfills.tsx')
-rw-r--r-- | packages/bun-framework-next/polyfills.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/bun-framework-next/polyfills.tsx b/packages/bun-framework-next/polyfills.tsx index b000c1f54..474ee6ec9 100644 --- a/packages/bun-framework-next/polyfills.tsx +++ b/packages/bun-framework-next/polyfills.tsx @@ -21,3 +21,8 @@ React.Children.only = function (children) { return onlyChildPolyfill(children); }; globalThis.URL = URL; + +import { TextEncoder, TextDecoder } from "./text-encoder-polyfill"; + +globalThis.TextEncoder ||= TextEncoder; +globalThis.TextDecoder ||= TextDecoder; |