Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jan 28, 2025

This PR reduces install size by replacing mlly resolver with import.meta.resolve -- which is a breaking change in terms of Node.js runtime support but ~ behavior

(mlly, has 1.2mb install size, and while powerful for build-time tooling, in the low-level dep chain like nypm > pkg-types is little oversized and it can grow with unjs/mlly#219)

--

This PR also includes unrelated change to improve findWorkspaceDir behavior:

  • Git directory is looked down similar to lockfile (so we don't wrongly detect sub-modules
  • Fixed lookup for package.json

@pi0 pi0 changed the title refactor: improve resolving and less install size refactor!: improve resolving and install size Jan 28, 2025
@pi0 pi0 requested review from antfu and danielroe January 28, 2025 11:45
@antfu
Copy link
Member

antfu commented Jan 28, 2025

Great, thanks!

@pi0 pi0 merged commit 267ec7d into main Feb 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants