Skip to content
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

Reduce dependencies size #38

Closed
4 tasks done
korgan00 opened this issue May 19, 2023 · 3 comments
Closed
4 tasks done

Reduce dependencies size #38

korgan00 opened this issue May 19, 2023 · 3 comments
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on

Comments

@korgan00
Copy link

Initial checklist

Problem

I am working on a project using unified, remark and rehype and trying to improve deploying times I realized that the size of this dependency is huge because of parse5.
A let you part of the installation sizes.
Screenshot 2023-05-18 at 11 06 56 AM

Solution

Don't use parse5; try to replace it with another solution or use the unified system to parse.

Alternatives

A custom parser.

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 19, 2023
@wooorm
Copy link
Member

wooorm commented May 19, 2023

This project doesn't use parse5. Please check what this project does

@wooorm wooorm added the 👀 no/external This makes more sense somewhere else label May 19, 2023
@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels May 19, 2023
@remcohaszing
Copy link
Member

The question doesn’t clearly describe a problem to me, but I think you are looking for rehype-dom.

@korgan00
Copy link
Author

Sorry about that, I was looking for hast-util-from-html

Thank you for the quick answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 no/external This makes more sense somewhere else 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

3 participants