feat: stabilize SubresourceIntegrityPlugin#12483
Conversation
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this comment.
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
experimentsnamespace 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.
website/docs/en/plugins/rspack/subresource-integrity-plugin.mdx
Outdated
Show resolved
Hide resolved
website/docs/zh/plugins/rspack/subresource-integrity-plugin.mdx
Outdated
Show resolved
Hide resolved
Rsdoctor Bundle Diff AnalysisFound 5 project(s) in monorepo. 📊 Quick Summary (Click to expand)
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-1kPath:
📦 Download Diff Report: react-1k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 romePath:
📦 Download Diff Report: rome Bundle Diff 📁 ui-componentsPath:
📦 Download Diff Report: ui-components Bundle Diff Generated by Rsdoctor GitHub Action |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
📦 Binary Size-limit
🎉 Size decreased by 4.50KB from 48.29MB to 48.29MB (⬇️0.01%) |
CodSpeed Performance ReportMerging #12483 will not alter performanceComparing Summary
|
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:
This change improves the developer experience by making the SRI plugin more accessible and clearly indicating its stable status.
Checklist