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(richtext-lexical): use copy of @lexical/markdown that does not install @lexical/code #9382

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Nov 20, 2024

Fixes #9378

We’ve found out that @lexical/markdown imports cannot be reliably dynamically imported by Node.js for an unknown reason. Frequently, Node.js simply exits before the dynamic import is done.

We’re suspecting the reason for this to be its dependency on @lexical/code that installs prism.

This will not only (hopefully) fix the import issue, but also reduce the bundle size & compilation speed of richtext-lexical.

@AlessioGr AlessioGr merged commit 5db7e1e into main Nov 20, 2024
52 checks passed
@AlessioGr AlessioGr deleted the fix/use-lexical-markdown-without-lexical-code branch November 20, 2024 20:03
Copy link

🚀 This is included in version v3.0.2

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

Successfully merging this pull request may close these issues.

generate:types works occasionally
1 participant