Skip to content

chore: bump swc_core from 52.0.0 to 54.0.0 and swc_experimental from 0.3.5 to 0.4.0#12582

Merged
chenjiahan merged 3 commits intomainfrom
12-30-chore/bump-swc
Dec 30, 2025
Merged

chore: bump swc_core from 52.0.0 to 54.0.0 and swc_experimental from 0.3.5 to 0.4.0#12582
chenjiahan merged 3 commits intomainfrom
12-30-chore/bump-swc

Conversation

@CPunisher
Copy link
Contributor

@CPunisher CPunisher commented Dec 30, 2025

Summary

SWC: https://github.com/swc-project/swc/blob/main/CHANGELOG-CORE.md

  • Parser/Minifier performance optimization
  • Minifier bug fixes

swc-experimental: https://github.com/CPunisher/swc-experimental/releases/tag/v0.4.0

  • Performance optimization ported from SWC
  • Dedicated optimization

Checklist

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

Copilot AI review requested due to automatic review settings December 30, 2025 05:36
@CPunisher CPunisher requested a review from quininer as a code owner December 30, 2025 05:36
@netlify
Copy link

netlify bot commented Dec 30, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 6602bac
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/695364d21311c0000899d65d

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 30, 2025
Copy link
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 bumps SWC core dependencies to leverage recent performance optimizations and bug fixes. The main update is swc_core from 52.0.0 to 54.0.0, with corresponding updates to related packages and the experimental swc packages from 0.3.5 to 0.4.0.

  • Updated swc_core and related packages to align with latest stable releases
  • Updated swc_experimental packages for performance improvements
  • Updated test expectations to reflect minor parser error formatting changes

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
Cargo.toml Bumped versions for swc (50.0.0 → 52.0.0), swc_core (52.0.0 → 54.0.0), swc_ecma_minifier (40.0.0 → 42.0.0), swc_html_minifier (40.0.0 → 42.0.0), and swc_experimental packages (0.3.5 → 0.4.0)
Cargo.lock Updated lock file with new package versions, checksums, and transitive dependency updates; removed swc_ecma_compiler dependency
crates/rspack_workspace/src/generated.rs Updated generated swc_core version constant from "52.0.0" to "54.0.0"
tests/rspack-test/diagnosticsCases/module-build-failed/loader-import-syntax-error/stats.err Updated test expectation to reflect parser error formatting change (removed caret indicator line)

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

@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 6602bac to refactor: refine exports info for CJS and ESM interop (#12577) by harpsealjs

🎉 Size decreased by 166.00KB from 48.00MB to 47.84MB (⬇️0.34%)

@github-actions
Copy link
Contributor

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 1 project with changes.

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

📁 rome

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

📌 Baseline Commit: 5bf9eccfba | PR: #12580

Metric Current Baseline Change
📊 Total Size 984.4 KB 984.3 KB +23.0 B (0.0%)
📄 JavaScript 984.4 KB 984.3 KB +23.0 B (0.0%)
🎨 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 Dec 30, 2025

CodSpeed Performance Report

Merging #12582 will not alter performance

Comparing 12-30-chore/bump-swc (6602bac) with main (5bf9ecc)

Summary

✅ 16 untouched
⏩ 1 skipped1

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.

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