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.
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.
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.