diff options
author | 2021-11-23 10:51:08 -0500 | |
---|---|---|
committer | 2021-11-23 10:51:08 -0500 | |
commit | 9ab9b01a640cd157634494b6b703d095897ac412 (patch) | |
tree | dee9f38700aa288eeb3ebfc5b4d2f0fa6b09d9be /packages/bun-framework-next/server-polyfills.tsx | |
parent | cdeb39bd7f0f2fa280f2c0ab833b789d3099f3ed (diff) | |
download | bun-9ab9b01a640cd157634494b6b703d095897ac412.tar.gz bun-9ab9b01a640cd157634494b6b703d095897ac412.tar.zst bun-9ab9b01a640cd157634494b6b703d095897ac412.zip |
stop installing textencoder
Diffstat (limited to 'packages/bun-framework-next/server-polyfills.tsx')
-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; |