|
// Polyfill code
|
|
import { TextEncoder, TextDecoder } from 'text-encoding';
|
|
|
|
if (typeof globalThis.TextEncoder === 'undefined') {
|
|
globalThis.TextEncoder = TextEncoder;
|
|
}
|
|
|
|
if (typeof globalThis.TextDecoder === 'undefined') {
|
|
globalThis.TextDecoder = TextDecoder;
|
|
}
|