Skip to content

feat(pnp)!: drop multi yarn pnp project resolving#13389

Merged
stormslowly merged 6 commits intomainfrom
feat/pnp_global_cache_support
Mar 18, 2026
Merged

feat(pnp)!: drop multi yarn pnp project resolving#13389
stormslowly merged 6 commits intomainfrom
feat/pnp_global_cache_support

Conversation

@stormslowly
Copy link
Contributor

@stormslowly stormslowly commented Mar 17, 2026

Summary

After upgrading to rspack-resolver@0.7.0, Rspack will change some features to PnP resolving

  1. PnP global cache is supported by default, no more pnpManifest needed
  2. Resolving between multi yarn PnP feature is dropped in Rspack resolver, because this usage is very rare. And this change makes the Rspack resolver more concise.
  3. resolve.pnpManifest configuration removed, because Rspack resolver detects the manfiest file automaticly.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@stormslowly stormslowly requested a review from hardfist as a code owner March 17, 2026 12:56
Copilot AI review requested due to automatic review settings March 17, 2026 12:56
@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: feature release: feature related release(mr only) labels Mar 17, 2026
@stormslowly stormslowly force-pushed the feat/pnp_global_cache_support branch from ffba280 to ee6f776 Compare March 17, 2026 13:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Rspack’s Yarn PnP resolving behavior after upgrading to rspack_resolver@0.7.0, removing the custom pnpManifest-based multi-project resolving path and leaning on resolver defaults (including global cache support).

Changes:

  • Bump rspack_resolver from 0.6.8 to 0.7.0.
  • Remove pnp_manifest/pnpManifest support from core resolve options and some bindings.
  • Adjust resolver option conversion/merge logic accordingly.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/rspack/package.json Package metadata change (currently introduces an invalid field).
crates/rspack_core/src/resolver/resolver_impl.rs Drops pnp_manifest wiring when building rspack_resolver::ResolveOptions.
crates/rspack_core/src/options/resolve/mod.rs Removes pnp_manifest from Resolve options.
crates/rspack_core/src/options/resolve/clever_merge.rs Removes clever-merge handling for pnp_manifest.
crates/rspack_binding_api/src/rspack_resolver/mod.rs Stops mapping pnp_manifest into resolver options.
crates/rspack_binding_api/src/options/raw_resolve.rs Removes pnp_manifest from one raw options type but leaves a now-unused parsing path elsewhere.
crates/node_binding/napi-binding.d.ts Removes pnpManifest from RawResolveOptions but leaves it in other exposed types.
Cargo.toml Bumps rspack_resolver version; minor formatting change in lint config.
Cargo.lock Lockfile updates for rspack_resolver@0.7.0 and new transitive deps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@stormslowly stormslowly marked this pull request as draft March 17, 2026 13:08
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 17, 2026

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: c0b9fb3
Status: ✅  Deploy successful!
Preview URL: https://864ff715.rspack-v2.pages.dev
Branch Preview URL: https://feat-pnp-global-cache-suppor.rspack-v2.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

📦 Binary Size-limit

Comparing b4d248a to chore: release 2.0.0-beta.7 (#13385) by harpsealjs

🎉 Size decreased by 18.63KB from 48.70MB to 48.68MB (⬇️0.04%)

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 17, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing feat/pnp_global_cache_support (b4d248a) with main (35c2f4a)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB 0
react-1k 826.2 KB 0
react-5k 2.7 MB 0
rome 984.2 KB 0
ui-components 2.3 MB 0

Generated by Rsdoctor GitHub Action

@stormslowly stormslowly mentioned this pull request Mar 17, 2026
2 tasks
@stormslowly stormslowly marked this pull request as ready for review March 18, 2026 04:14
@stormslowly stormslowly merged commit 72d1b7f into main Mar 18, 2026
47 checks passed
@stormslowly stormslowly deleted the feat/pnp_global_cache_support branch March 18, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants