Skip to content

feat!: remove experiments.layers#12723

Merged
LingyuCoder merged 1 commit intov2from
feat/remove-experiment-layers
Jan 14, 2026
Merged

feat!: remove experiments.layers#12723
LingyuCoder merged 1 commit intov2from
feat/remove-experiment-layers

Conversation

@LingyuCoder
Copy link
Contributor

Summary

Layer is a feature for organizing modules into different layers, which can be useful in advanced scenarios such as React Server Components. By assigning different layers to modules, you can gain finer control over their build behavior, for example:

  • Compiling modules in different layers for different target environments
  • Outputting them to separate build directories

Starting from Rspack 1.6, the layer feature has become stable enough that the experimental flag experiments.layers has been deprecated. You can now use the layer feature directly without the experimental flag.

Related links

Checklist

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

@LingyuCoder LingyuCoder requested a review from hardfist as a code owner January 14, 2026 05:10
@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for rspack-v2 ready!

Name Link
🔨 Latest commit 4cb74ad
🔍 Latest deploy log https://app.netlify.com/projects/rspack-v2/deploys/69672541decf8000081f3caf
😎 Deploy Preview https://deploy-preview-12723--rspack-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@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 Jan 14, 2026
@github-actions
Copy link
Contributor

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 3 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB -8.0 B (-0.0%)
react-1k 825.4 KB 0
react-5k 2.7 MB +1.0 B (0.0%)
rome 986.0 KB +1.7 KB (0.2%)
ui-components 2.1 MB 0
📋 Detailed Reports (Click to expand)

📁 react-10k

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

📌 Baseline Commit: 0ddce9d224 | PR: #12716

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

📦 Download Diff Report: react-10k Bundle Diff

📁 react-5k

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

📌 Baseline Commit: 0ddce9d224 | PR: #12716

Metric Current Baseline Change
📊 Total Size 2.7 MB 2.7 MB +1.0 B (0.0%)
📄 JavaScript 2.7 MB 2.7 MB +1.0 B (0.0%)
🎨 CSS 21.0 B 21.0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 0 B 0 B 0

📦 Download Diff Report: react-5k Bundle Diff

📁 rome

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

📌 Baseline Commit: 0ddce9d224 | PR: #12716

Metric Current Baseline Change
📊 Total Size 986.0 KB 984.3 KB +1.7 KB (0.2%)
📄 JavaScript 986.0 KB 984.3 KB +1.7 KB (0.2%)
🎨 CSS 0 B 0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 0 B 0 B 0

📦 Download Diff Report: rome Bundle Diff

Generated by Rsdoctor GitHub Action

@LingyuCoder LingyuCoder requested a review from ahabhgk January 14, 2026 05:23
@LingyuCoder LingyuCoder enabled auto-merge (squash) January 14, 2026 05:25
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 14, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing feat/remove-experiment-layers (4cb74ad) with v2 (b0c7f30)2

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

  2. No successful run was found on v2 (a6515f9) during the generation of this report, so b0c7f30 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 4cb74ad to chore(deps): update patch crates (#12716) by renovate[bot]

🎉 Size decreased by 386.63KB from 47.90MB to 47.53MB (⬇️0.79%)

@LingyuCoder LingyuCoder merged commit d8b21ba into v2 Jan 14, 2026
56 checks passed
@LingyuCoder LingyuCoder deleted the feat/remove-experiment-layers branch January 14, 2026 06:17
LingyuCoder added a commit that referenced this pull request Jan 14, 2026
feat: remove experiments.layers
hardfist pushed a commit that referenced this pull request Jan 14, 2026
feat: remove experiments.layers
LingyuCoder added a commit that referenced this pull request Jan 15, 2026
feat: remove experiments.layers
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.

2 participants