How to reduce the large bundle size of @react-email/render
?
#618
Unanswered
laubonghaudoi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using next js for my app and the core web vital shows that I have a large amount of unused javascript. So I run the bundle analyzer and see that it's actually the

@react-email/render
package taking up the most spaces:This thing is the largest chunk in my static bundle. My
First Load JS shared by all
is 174 kB, while thisbeautify.js
alone is 144.95 kB. I am already using dynamic import for this email rendering component and split the codes. This is greatly slowing down my web app, increasing the Largest Contentful Paint (LCP) and I want to know how to fix this piece of "unused JavaScript".Beta Was this translation helpful? Give feedback.
All reactions