Closed as not planned
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
parse5
and hast-util-from-parse5
are quite big. Bundle size could be decreased by using hast-util-from-dom
instead in a browser condition.
Solution
Make this package export a solution based on hast-util-from-dom
for the browser using an export map.
Alternatives
Create a new wrapper package that uses hast-util-from-dom
or hast-util-from-html
conditionally.
If a wrapper package is created, should rehype-parse
use that?