fix(build): remove mdx from transpilation#1860
Merged
waleedlatif1 merged 1 commit intostagingfrom Nov 8, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
Removes 5 MDX-related packages (next-mdx-remote, gray-matter, rehype-autolink-headings, rehype-slug, remark-gfm) from the transpilePackages array in Next.js configuration.
Key Points:
- These packages were accidentally added in PR #1698 (platform-v3)
- The packages are actively used by the blog system in
lib/blog/registry.tsandlib/blog/mdx.tsx - They import from
/rscsubpath (React Server Components), which are already properly formatted for Next.js App Router - The
transpilePackagesoption is only needed for packages that contain client-side code with incompatible module formats - This fix reduces unnecessary build-time transpilation overhead
Confidence Score: 5/5
- This PR is safe to merge with no risk
- The change correctly removes packages that don't require transpilation. The MDX packages use React Server Components exports (/rsc) which are already compatible with Next.js App Router. The packages remain installed as dependencies and continue to be used by the blog system, so no functionality is affected. This simply optimizes the build configuration by removing unnecessary transpilation steps.
- No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| apps/sim/next.config.ts | 5/5 | Removed 5 MDX-related packages from transpilePackages array that were accidentally added and don't require transpilation |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant NC as next.config.ts
participant NB as Next.js Build
participant Blog as Blog System
Dev->>NC: Remove MDX packages from transpilePackages
Note over NC: transpilePackages array reduced<br/>from 10 to 5 entries
NB->>NC: Read build configuration
NC->>NB: Return transpilePackages list
Note over NB: Only transpiles:<br/>- prettier<br/>- @react-email/*<br/>- @t3-oss/*<br/>- @sim/db
Blog->>Blog: Import next-mdx-remote/rsc
Note over Blog: Uses native ESM/RSC exports<br/>No transpilation needed
NB->>Blog: Build blog pages
Note over NB,Blog: MDX packages used directly<br/>without transpilation
1 file reviewed, no comments
waleedlatif1
added a commit
that referenced
this pull request
Nov 9, 2025
waleedlatif1
added a commit
that referenced
this pull request
Nov 9, 2025
waleedlatif1
added a commit
that referenced
this pull request
Nov 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist