mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
/**
|
|
* Browser polyfill for the `"util"` module.
|
|
*
|
|
* Imported on usage in `bun build --target=browser`
|
|
*/
|
|
export * from "util";
|
|
|
|
const TextEncoder = globalThis.TextEncoder;
|
|
const TextDecoder = globalThis.TextDecoder;
|
|
|
|
export { TextDecoder, TextEncoder };
|
|
export default { TextEncoder, TextDecoder };
|