Skip to content

Use hast-util-from-dom in the browser #2

Closed as not planned
Closed as not planned
@remcohaszing

Description

@remcohaszing

Initial checklist

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    👀 no/externalThis makes more sense somewhere else👎 phase/noPost cannot or will not be acted on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions