-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Move isHTMLElement into core #4977
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
If this is true, then our tree-shaking is broken. There's no reason why we should be bundling the entire utils package into the core because of two imports. I don't mind if we do this but I want to:
|
Actually two more thoughts:
|
@acywatson I'm not sure tree-shaking will work on a per-file basis (not what I've seen so far) but internally this is not ideal, see https://fburl.com/diff/o2jlrdx2 |
Tree-shaking is concerned with modules and their specific exports/imports, so it should definitely work on a per-file basis. Let's discuss offline. |
Hi, after this pr LexicalRichText is failing |
@ajax-fam-d most likely you haven't updated all @lexical packages to the latest 0.12.2 version. |
Adding this dependency onto core adds another 6.9K to core unnecessarily. Since it's just a couple very lightweight functions I'm moving them into core for now while retaining the export onto @lexical/utils for backward compatibility.