Skip to content

chore: suport pnp global cache#13382

Merged
stormslowly merged 2 commits intov1.xfrom
chore/canary_for_pnp_global
Mar 20, 2026
Merged

chore: suport pnp global cache#13382
stormslowly merged 2 commits intov1.xfrom
chore/canary_for_pnp_global

Conversation

@stormslowly
Copy link
Contributor

@stormslowly stormslowly commented Mar 17, 2026

Summary

backport of #13389

Related links

Checklist

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

@stormslowly stormslowly force-pushed the chore/canary_for_pnp_global branch from 6410c53 to c7a835a Compare March 17, 2026 08:01
@stormslowly stormslowly force-pushed the chore/canary_for_pnp_global branch from c7a835a to 4b749f2 Compare March 17, 2026 08:04
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Mar 17, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 5 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB -
react-1k 825.3 KB -
react-5k 2.7 MB -
rome 984.2 KB -
ui-components 2.1 MB -
📋 Detailed Reports (Click to expand)

📁 react-10k

Path: ../build-tools-performance/cases/react-10k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 5.7 MB - -
📄 JavaScript 5.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 react-1k

Path: ../build-tools-performance/cases/react-1k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 825.3 KB - -
📄 JavaScript 825.3 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 react-5k

Path: ../build-tools-performance/cases/react-5k/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.7 MB - -
📄 JavaScript 2.7 MB - -
🎨 CSS 21.0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 rome

Path: ../build-tools-performance/cases/rome/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 984.2 KB - -
📄 JavaScript 984.2 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 ui-components

Path: ../build-tools-performance/cases/ui-components/dist/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.1 MB - -
📄 JavaScript 2.0 MB - -
🎨 CSS 83.0 KB - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

Generated by Rsdoctor GitHub Action

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

📦 Binary Size-limit

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

🎉 Size decreased by 599.36KB from 48.70MB to 48.11MB (⬇️1.20%)

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 17, 2026

Merging this PR will degrade performance by 21.67%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 15 untouched benchmarks
⏩ 3 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation bundle@threejs-development 649.5 ms 829.3 ms -21.67%

Comparing chore/canary_for_pnp_global (b8e7a74) with main (35c2f4a)2

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.

  2. No successful run was found on v1.x (a8d1edf) during the generation of this report, so main (35c2f4a) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@stormslowly stormslowly marked this pull request as ready for review March 20, 2026 06:49
@stormslowly stormslowly requested a review from quininer as a code owner March 20, 2026 06:49
@stormslowly stormslowly merged commit a16df46 into v1.x Mar 20, 2026
51 checks passed
@stormslowly stormslowly deleted the chore/canary_for_pnp_global branch March 20, 2026 06:49
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8e7a74c22

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

regress = { version = "0.10.5", default-features = false, features = ["pattern"] }
ropey = { version = "1.6.1", default-features = false }
rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.6.6", default-features = false }
rspack_resolver = { features = ["package_json_raw_json_api", "yarn_pnp"], version = "0.7.0", default-features = false }

Choose a reason for hiding this comment

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

P1 Badge Keep cross-project Yarn PnP resolution working

In Yarn PnP setups that import code from another PnP-managed project, this version bump regresses module resolution. The upstream rspack_resolver v0.7.0 PR/release says it now assumes there is "one and only one .pnp.cjs file" and "no across-PnP-enabled project referencing", while Rspack still documents resolve.pnp as generic Yarn PnP support in website/docs/en/config/resolve.mdx:593-595. That means builds which cross into a second PnP project will start failing with module-not-found errors after this change, so we need either a compatibility layer/tests or to stay on 0.6.x.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants