facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.93k stars 1.5k forks source link

Feature: Deprecate default exports from public entrypoints (or at least give every module named exports) #6079

Closed etrepum closed 3 weeks ago

etrepum commented 1 month ago

The following modules use default exports in their entrypoints, which is inconsistent with the rest of the monorepo:

There are other reasons not to use default exports (e.g. the types are wrong in cjs, the module names are not always consistent with what we call them in OSS docs for www reasons, etc.) but I think inconsistency is a good enough reason.

I propose that we, at minimum:

Bonus points if we can agree to:

StyleT commented 3 weeks ago

@etrepum Hi! Can we close this?

etrepum commented 3 weeks ago

@StyleT yes, it did not get closed because of a bug in the issue template that's fixed by #6124