Skip to content

feat: stabilize SubresourceIntegrityPlugin#12483

Merged
LingyuCoder merged 6 commits intomainfrom
feat/subresource-integrity-plugin-stable
Dec 17, 2025
Merged

feat: stabilize SubresourceIntegrityPlugin#12483
LingyuCoder merged 6 commits intomainfrom
feat/subresource-integrity-plugin-stable

Conversation

@LingyuCoder
Copy link
Copy Markdown
Contributor

Summary

This pull request stabilizes the SubresourceIntegrityPlugin by moving it from the experimental API to the stable API. The plugin is now exported directly from the main rspack package, making it available for production use without requiring the experiments flag.

The changes include:

  • Exporting SubresourceIntegrityPlugin from the main exports
  • Removing it from the experiments namespace
  • Updating test configurations to use the stable API
  • Updating documentation to reflect the stable status

This change improves the developer experience by making the SRI plugin more accessible and clearly indicating its stable status.

Checklist

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

Copilot AI review requested due to automatic review settings December 17, 2025 03:37
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 17, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 649f8fa
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/694246f61d2eea00084843a2

@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 Dec 17, 2025
@LingyuCoder LingyuCoder changed the title feat: stabilize SubresourceIntegrityPlugin API feat: stabilize SubresourceIntegrityPlugin Dec 17, 2025
Copy link
Copy Markdown
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

This PR stabilizes the SubresourceIntegrityPlugin by moving it from the experimental API to the stable API. The plugin is now available for production use without requiring the experiments namespace, improving developer experience and clearly indicating its stable status.

  • Moved SubresourceIntegrityPlugin from experiments namespace to top-level exports
  • Updated 12 test configurations to use the stable import path
  • Updated English and Chinese documentation to reflect stable import paths

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/rspack/src/exports.ts Exports SubresourceIntegrityPlugin at top level and removes it from experiments interface and object
packages/rspack/etc/core.api.md Updates API documentation to reflect SubresourceIntegrityPlugin as a stable export
website/docs/en/plugins/rspack/subresource-integrity-plugin.mdx Updates import examples to show stable API usage (removing experiments reference)
website/docs/zh/plugins/rspack/subresource-integrity-plugin.mdx Updates Chinese import examples to show stable API usage (removing experiments reference)
tests/rspack-test/configCases/sri/runtime-requirement/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/remote-src/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/remote-src-protocol/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/only-concatenated-module/rspack.config.js Updates test to use stable API path (rspack.SubresourceIntegrityPlugin)
tests/rspack-test/configCases/sri/mf/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/mf-splitting/rspack.config.js Updates test to destructure SubresourceIntegrityPlugin from rspack directly
tests/rspack-test/configCases/sri/link-tags/rspack.config.js Updates test to use stable API path (rspack.SubresourceIntegrityPlugin)
tests/rspack-test/configCases/sri/css-chunk/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/css-chunk-mix/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/css-chunk-extract/rspack.config.js Updates test to import SubresourceIntegrityPlugin from stable API
tests/rspack-test/configCases/sri/async-entrypoints/rspack.config.js Updates test to use stable API path (rspack.SubresourceIntegrityPlugin)

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 17, 2025

Rsdoctor Bundle Diff Analysis

Found 5 project(s) in monorepo.

📊 Quick Summary (Click to expand)
Project Total Size Change
react-10k 5.7 MB ➡️ 0 B (0.0%)
react-1k 823.4 KB ➡️ 0 B (0.0%)
react-5k 2.7 MB ➡️ 0 B (0.0%)
rome 984.3 KB ➡️ 38.0 B (0.0%)
ui-components 2.1 MB ➡️ -41.0 B (-0.0%)
📋 Detailed Reports (Click to expand)

📁 react-10k

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

📌 Baseline Commit: ff4d368956 | PR: #12475

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

📦 Download Diff Report: react-10k Bundle Diff

📁 react-1k

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

📌 Baseline Commit: ff4d368956 | PR: #12475

Metric Current Baseline Change
📊 Total Size 823.4 KB 823.4 KB 0 B (0.0%)
📄 JavaScript 823.4 KB 823.4 KB 0 B (0.0%)
🎨 CSS 0 B 0 B N/A
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: react-1k Bundle Diff

📁 react-5k

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

📌 Baseline Commit: ff4d368956 | PR: #12475

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

📦 Download Diff Report: react-5k Bundle Diff

📁 rome

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

📌 Baseline Commit: ff4d368956 | PR: #12475

Metric Current Baseline Change
📊 Total Size 984.3 KB 984.3 KB 38.0 B (0.0%)
📄 JavaScript 984.3 KB 984.3 KB 38.0 B (0.0%)
🎨 CSS 0 B 0 B N/A
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: rome Bundle Diff

📁 ui-components

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

📌 Baseline Commit: ff4d368956 | PR: #12475

Metric Current Baseline Change
📊 Total Size 2.1 MB 2.1 MB -41.0 B (-0.0%)
📄 JavaScript 2.0 MB 2.0 MB -41.0 B (-0.0%)
🎨 CSS 83.0 KB 83.0 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: ui-components Bundle Diff

Generated by Rsdoctor GitHub Action

LingyuCoder and others added 3 commits December 17, 2025 11:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 17, 2025

📦 Binary Size-limit

Comparing 649f8fa to perf(rstest): minor performance optimization (#12469) by Max

🎉 Size decreased by 4.50KB from 48.29MB to 48.29MB (⬇️0.01%)

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Dec 17, 2025

CodSpeed Performance Report

Merging #12483 will not alter performance

Comparing feat/subresource-integrity-plugin-stable (649f8fa) with main (ff4d368)

Summary

✅ 17 untouched

@LingyuCoder LingyuCoder enabled auto-merge (squash) December 17, 2025 05:33
chenjiahan
chenjiahan previously approved these changes Dec 17, 2025
@LingyuCoder LingyuCoder merged commit aaf1c49 into main Dec 17, 2025
52 checks passed
@LingyuCoder LingyuCoder deleted the feat/subresource-integrity-plugin-stable branch December 17, 2025 06:32
@CPunisher CPunisher mentioned this pull request Dec 17, 2025
2 tasks
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