Skip to content

feat(react-email): colocate components in react-email#3243

Merged
gabrielmfern merged 10 commits intofeat/unify-packages-into-react-emailfrom
stack/01b-colocate-body
Apr 13, 2026
Merged

feat(react-email): colocate components in react-email#3243
gabrielmfern merged 10 commits intofeat/unify-packages-into-react-emailfrom
stack/01b-colocate-body

Conversation

@gabrielmfern
Copy link
Copy Markdown
Member

@gabrielmfern gabrielmfern commented Apr 10, 2026

Summary

  • Colocates the @react-email/body component source into the react-email package
  • Fixes type issues in CLI and body component files

Stack: 2/11 — Depends on #3232

Made with Cursor


Summary by cubic

Colocated @react-email/{body,button,code-block,code-inline,column,container,font,head,heading,hr,html,img,link,markdown,preview,row,section,text,tailwind} into react-email, removed their standalone packages, and exported them from the root. Updated CLI/tests to ESM-safe import paths to keep builds green.

  • Refactors

    • Body: inner table wrapper resets margin/padding; user styles applied on inner cell for client compatibility.
    • Button: colocated with padding utils/tests; preserves Outlook padding handling.
    • CodeBlock: colocated with languages/themes; tightened token typing.
    • Link, Markdown, Preview, Row, Section, Text: colocated and exported from the root.
    • CodeInline, Column, Container, Font, Head, Heading, Hr, Html, Img: colocated and exported from the root.
    • Tailwind: colocated and exported from the root.
    • Added root/component barrel exports; build src/index.ts (ESM/CJS + DTS) and included TSX.
    • Fixed ESM-only imports by adding .js extensions and JSON import assertions in CLI/tests.
  • Dependencies

    • Added marked, prismjs, css-tree, and tailwindcss to react-email.
    • Added dev @react-email/render, @types/css-tree, and @responsive-email/react-email.

Written for commit 75438bb. Summary will update on new commits.

@gabrielmfern gabrielmfern requested a review from joaopcm April 10, 2026 20:38
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 10, 2026

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

Project Deployment Actions Updated (UTC)
react-email Error Error Apr 13, 2026 3:29pm
react-email-demo Error Error Apr 13, 2026 3:29pm
react-email-examples Error Error Apr 13, 2026 3:29pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 10, 2026

⚠️ No Changeset found

Latest commit: 75438bb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 10, 2026

Open in StackBlitz

npm i https://pkg.pr.new/react-email@3243

commit: 1b66c88

Copy link
Copy Markdown
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 13 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@gabrielmfern gabrielmfern force-pushed the stack/01b-colocate-body branch from 1820db9 to 1b66c88 Compare April 10, 2026 20:47
@vercel vercel bot temporarily deployed to Preview – react-email-examples April 10, 2026 20:47 Inactive
@gabrielmfern gabrielmfern changed the title refactor: colocate @react-email/body source in react-email feat(react-email): colocate @react-email/body source in react-email Apr 10, 2026
@vercel vercel bot temporarily deployed to Preview – react-email-examples April 10, 2026 20:52 Inactive
Base automatically changed from stack/01-cli-prep to feat/unify-packages-into-react-email April 13, 2026 15:17
@vercel vercel bot temporarily deployed to Preview – react-email-examples April 13, 2026 15:29 Inactive
@gabrielmfern gabrielmfern changed the title feat(react-email): colocate @react-email/body source in react-email feat(react-email): colocate components in react-email Apr 13, 2026
@gabrielmfern gabrielmfern merged commit 981080e into feat/unify-packages-into-react-email Apr 13, 2026
5 of 13 checks passed
@gabrielmfern gabrielmfern deleted the stack/01b-colocate-body branch April 13, 2026 15:30
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.

2 participants