Skip to content

Commit bb8cd54

Browse files
authored
fix(react-email): Missing URL on global context for email VM (#1232)
1 parent ce0e7ea commit bb8cd54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const getEmailComponent = async (
5656
...global,
5757
console,
5858
Buffer,
59+
URL,
5960
module: { exports: { default: undefined as unknown } },
6061
__filanem: emailPath,
6162
__dirname: path.dirname(emailPath),

0 commit comments

Comments
 (0)