Skip to content

Commit 8719082

Browse files
authored
fix(react-email): errors in export without manual React import (#2389)
1 parent c7b7d21 commit 8719082

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smart-hornets-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
fix errors in `export` when without manual React import

packages/react-email/src/commands/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const exportTemplates = async (
8181
bundle: true,
8282
entryPoints: allTemplates,
8383
format: 'cjs',
84-
jsx: 'transform',
84+
jsx: 'automatic',
8585
loader: { '.js': 'jsx' },
8686
logLevel: 'silent',
8787
outExtension: { '.js': '.cjs' },

0 commit comments

Comments
 (0)