Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dont externalize mermaid #1033

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

kellyjosephprice
Copy link
Collaborator

PR App Fix RM-XYZ

🧰 Changes

Don't externalize mermaid for the node build.

In mdx-renderer it's dynamically imported, so it doesn't usually get executed. If we externalize it, we either have to specifically include it in the execution environment, or configure rollup to inline it. The former is an unnecessary hassle, and the latter appears to execute the code immediatelly and slow down the build. So lets go back to bundling it, but dynamically importing it.

🧬 QA & Testing

@kellyjosephprice kellyjosephprice marked this pull request as ready for review November 21, 2024 22:44
@kellyjosephprice kellyjosephprice merged commit 030c4e6 into next Nov 21, 2024
13 checks passed
@kellyjosephprice kellyjosephprice deleted the fix/dont-externalize-mermaid branch November 21, 2024 23:17
rafegoldberg pushed a commit that referenced this pull request Nov 21, 2024
## Version 7.10.3
### 🛠 Fixes & Updates

* dont externalize mermaid ([#1033](#1033)) ([030c4e6](030c4e6))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v7.10.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants