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

feat(richtext-lexical)!: properly define client-only and server-only exports #6890

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Jun 21, 2024

server-only stuff is exported from /, client-only stuff from /client, and shared stuff from both. This was the best way to avoid duplication within the same environment (server/client).

BREAKING: a bunch of exports have been moved around. There are now two of them: @payloadcms/richtext-lexical and @payloadcms/richtext-lexical/client. The root export is server-only. If any imports don't resolve anymore after this version, simply change the import to one of those, depending on if you are on the server or the client

@AlessioGr AlessioGr merged commit 8f977b9 into beta Jun 21, 2024
44 checks passed
@AlessioGr AlessioGr deleted the feat/lexical-exports branch June 21, 2024 19:40
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.

1 participant