unjs / unbuild

📦 An unified javascript build system
MIT License
2.19k stars 84 forks source link

Reduce sub-sub-sub dependencies #405

Open pi0 opened 2 days ago

pi0 commented 2 days ago

Context: from https://github.com/es-tooling/module-replacements/issues/60#issuecomment-2199242095 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.