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 sub-sub-sub dependencies #405

Open
pi0 opened this issue Jul 1, 2024 · 1 comment
Open

Reduce sub-sub-sub dependencies #405

pi0 opened this issue Jul 1, 2024 · 1 comment
Labels
discussion enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Jul 1, 2024

Context: from es-tooling/module-replacements#60 (comment) by @AbhiPrasad

Currently unbuilds install lots of sub-dependencies some are not required for basic builds. (graph)

From CSS stuff, I assume they are related to mkdist optional loaders and I think we can replace them with optional peer dependencies (as part of #381 migration) and even a simple smart prompt to install if needed.

Rollup and its plugins are also a pain point. While inlining them all is one option, perhaps we can wait for rolldown to be mature and swap to it in v4.

@drwpow
Copy link

drwpow commented Feb 7, 2025

perhaps we can wait for rolldown to be mature and swap to it in v4

As someone that’s been following the Rolldown project somewhat-closely, it seems to be in a good place right now for JS/TS, but still has a few rough edges around other filetypes like CSS (e.g. importing in a React library).

All that said, I’m not sure how wide the scope of different project types unbuild wants to tackle. If unbuild is centered on JS/TS then Rolldown seems like it’s at a point where it could be explored as a replacement (as a beta). But if unbuild wants to give equal support to usecases like React libraries with CSS, libraries that ship WASM, and other extended filetypes, then Rolldown’s plugin ecosystem will probably have to mature quite a bit futher (I believe they’re currently still shipping breaking plugin API changes).

Note: worth noting that Rolldown does have much better support for CSS and a few other things with no plugins needed! But the API is also not stable so IMO not ready to build upon just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants