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

Bug: API modules list #5913

Closed
Aemulatio opened this issue Apr 17, 2024 · 1 comment · Fixed by #5931
Closed

Bug: API modules list #5913

Aemulatio opened this issue Apr 17, 2024 · 1 comment · Fixed by #5931

Comments

@Aemulatio
Copy link

It's look like there're some internal modules presented into API->Modules block of the documentation

image
@etrepum
Copy link
Collaborator

etrepum commented Apr 17, 2024

They're not internal modules, those are all public modules that can be imported. On the other hand, @lexical/react is not a module that can be imported. For some historical reason that I don't know about, the @lexical/react package is organized in this way rather than having a central "barrel" module where all of the internals can be imported. My guess is that it's organized in this way to support a rudimentary tree-shaking bundler.

It might make sense to organize the documentation for @lexical/react's modules in some other way, or bite the bullet and make it all importable from @lexical/react, but in its current state the API sidebar lists all of the modules you can import. Previously (before #5850), there was no API documentation at all for any of these modules on the website.

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

Successfully merging a pull request may close this issue.

2 participants