Skip to content

Commit dfc0702

Browse files
authored
feat: use utf8-only text-encoding polyfill (#39)
1 parent 36d966c commit dfc0702

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

bundler/modules/globals.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ if (
200200
) {
201201
if (!globalThis.URLSearchParams) globalThis.URLSearchParams = require('@ungap/url-search-params')
202202
if (!globalThis.TextEncoder || !globalThis.TextDecoder) {
203-
const { TextEncoder, TextDecoder } = require('text-encoding')
203+
const { TextEncoder, TextDecoder } = require('@exodus/text-encoding-utf8')
204204
if (!globalThis.TextEncoder) globalThis.TextEncoder = TextEncoder
205205
if (!globalThis.TextDecoder) global.TextDecoder = TextDecoder
206206
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
"@babel/register": "^7.0.0",
131131
"@chalker/queue": "^1.0.0",
132132
"@exodus/replay": "^1.0.0-rc.4",
133+
"@exodus/text-encoding-utf8": "^1.0.2",
133134
"@ungap/url-search-params": "^0.2.2",
134135
"amaro": "^0.0.5",
135136
"assert": "^2.1.0",
@@ -152,7 +153,6 @@
152153
"puppeteer-core": "^24.6.0",
153154
"querystring-es3": "^0.2.1",
154155
"stream-browserify": "^3.0.0",
155-
"text-encoding": "^0.7.0",
156156
"timers-browserify": "^2.0.12",
157157
"tsx": "^4.19.3",
158158
"url": "^0.11.0",

pnpm-lock.yaml

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)