payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.66k stars 1.72k forks source link

fix(richtext-lexical): use copy of @lexical/markdown that does not install @lexical/code #9382

Closed AlessioGr closed 1 day ago

AlessioGr commented 1 day ago

Fixes https://github.com/payloadcms/payload/issues/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.

github-actions[bot] commented 1 day ago

🚀 This is included in version v3.0.2