Skip to content

Conversation

@rehanvdm
Copy link
Contributor

@rehanvdm rehanvdm commented Oct 10, 2025

This sets wordwrap to be disabled when converting HTML to text. It defaulted to 80 before.

image

This function is extremely compute heavy and completely blocks the event loop for many seconds when it has long lines. Users can still override this option by passing in their own options. We are defaulting it to disabled to improve performance.

@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 70c9705

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@react-email/render Minor
@react-email/components Patch
playground Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-email Ready Ready Preview Comment Oct 10, 2025 0:53am
react-email-demo Ready Ready Preview Comment Oct 10, 2025 0:53am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/render@2557

commit: 70c9705

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@rehanvdm rehanvdm merged commit 4205615 into canary Oct 10, 2025
15 checks passed
@rehanvdm rehanvdm deleted the feature/improve-plain-text-performance branch October 10, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants