-
We would like to render React Email in lambda like advertised Using the default config, the final bundle fails to transpile JSX syntax into We tried adding the following config in our custom:
esbuild:
+ jsx: automatic Is there anyway to make this happen? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi @vicary. According to this esbuild document it must automatically bundle JSX without extra configuration. However, this plugin when bundling sets the |
Beta Was this translation helpful? Give feedback.
Hey, thanks for the reply.
It turns out to be caused by esbuild node-resolve plugin forcing yarn's resolving to esbuild 0.17.
Installing the latest version of esbuild fixes the issue.