Skip to content

Commit 0c68868

Browse files
committed
fix(react-email): __filanem typo for the VM context for email components on the preview
1 parent 20f560b commit 0c68868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const getEmailComponent = async (
6363
ReadableStream,
6464
URL,
6565
module: { exports: { default: undefined as unknown } },
66-
__filanem: emailPath,
66+
__filename: emailPath,
6767
__dirname: path.dirname(emailPath),
6868
require: (module: string) => {
6969
if (module in staticNodeModulesForVM) {

0 commit comments

Comments
 (0)