Skip to content

feat!: remove experiments.SubResourceIntegrityPlugin (#12642)#12732

Closed
Timeless0911 wants to merge 1 commit intov2from
pure-esm
Closed

feat!: remove experiments.SubResourceIntegrityPlugin (#12642)#12732
Timeless0911 wants to merge 1 commit intov2from
pure-esm

Conversation

@Timeless0911
Copy link
Contributor

Summary

@rspack/core is now published as a pure ESM package, and its CommonJS build output has been removed. This change only affects how Rspack itself is published, reducing the installation size by about 75 KB.

In Node.js v20.19.0 and later, the runtime natively supports loading ESM modules via require(). As a result, for most projects that use Rspack through its JavaScript API, this change should have no practical impact and does not require any code modifications.

As Node.js 18 reached its end-of-life on April 30, 2025, Rspack 2.0 will no longer support this version. The minimum supported version will be Node.js 20.19.

Related links

Checklist

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

@netlify
Copy link

netlify bot commented Jan 14, 2026

βœ… Deploy Preview for rspack-v2 ready!

Name Link
πŸ”¨ Latest commit dc39714
πŸ” Latest deploy log https://app.netlify.com/projects/rspack-v2/deploys/69678b70765e63000836aa6e
😎 Deploy Preview https://deploy-preview-12732--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 release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack. 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%)
ui-components 2.1 MB 0
rome 986.0 KB +1.7 KB (0.2%)
πŸ“‹ Detailed Reports (Click to expand)

πŸ“ react-10k

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

πŸ“Œ Baseline Commit: 25020fd1f3 | PR: #12680

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: 25020fd1f3 | PR: #12680

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: 25020fd1f3 | PR: #12680

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

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 14, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing pure-esm (dc39714) with v2 (3f8d74e)

Summary

βœ… 16 untouched benchmarks
⏩ 1 skipped benchmark1

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. ↩

@github-actions
Copy link
Contributor

πŸ“¦ Binary Size-limit

Comparing dc39714 to feat: support portable cache and disable by default (#12680) by jinrui

πŸŽ‰ Size decreased by 406.00KB from 47.97MB to 47.57MB (⬇️0.83%)

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.

1 participant