-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 html serializer out of core #55
Comments
I'm thinking of tackling this one. Feels like it provides some good ROI in terms of reducing file size. I also noticed that Cheerio has a dependency on The question I have is what should I do with the html serializer? Should I just open up my own repo and have you fork from it? I don't want to be the core maintainer for it so what's the best way to get it into your hands? Also, I'm wondering if you might prefer another option where the HTML serializer is available in a subpath. For example: import {Editor} from 'slate'
// but to get the HTML serializer
import HTML from 'slate/html-serializer' Under this scenario, the entire library size won't change but the amount of code being loaded into the browser would be less. Only if you import from |
Along the same line, if we do decide to move the html serializer to a subpath, we could easily do the same thing with the plain serializer and the raw serializer. This means they wouldn't need to get loaded unless they were actually needed. |
Hey @thesunny, interesting idea about the file paths. I hadn't thought about that. I think it might be something we could consider later. My only hesitation is that I think But I definitely still want to allow us to slim down the |
Makes sense and sounds good. |
Adds too much opinion, and also bloat with
cheerio
dependency.The text was updated successfully, but these errors were encountered: