Skip to content

Commit 20f560b

Browse files
authored
fix(react-email): Missing TextDecoder, TextEncoder and stream variants of these on the global for email components being rendered (#1259)
1 parent a9ab64d commit 20f560b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-email/src/utils/get-email-component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export const getEmailComponent = async (
5656
...global,
5757
console,
5858
Buffer,
59+
TextDecoder,
60+
TextDecoderStream,
61+
TextEncoder,
62+
TextEncoderStream,
63+
ReadableStream,
5964
URL,
6065
module: { exports: { default: undefined as unknown } },
6166
__filanem: emailPath,

0 commit comments

Comments
 (0)