Skip to content

Conversation

@CPunisher
Copy link
Contributor

Summary

SWC changelog: https://github.com/swc-project/swc/blob/main/CHANGELOG-CORE.md
SWC exp changelog: https://github.com/CPunisher/swc-experimental/releases/tag/v0.3.4

fixes: #12492

Checklist

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

@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit fb777a3
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6948dd6486a28f0008026807

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 22, 2025
@CPunisher CPunisher changed the title chore: bump swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.4 chore: bump swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.5 Dec 22, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

📦 Binary Size-limit

Comparing fb777a3 to test: add retry configuration for CI to reduce flakes (#12517) by neverland

🎉 Size decreased by 109.25KB from 48.23MB to 48.12MB (⬇️0.22%)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

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.3 KB +28.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: e2863bb52f | PR: #12517

Metric Current Baseline Change
📊 Total Size 984.3 KB 984.3 KB +28.0 B (0.0%)
📄 JavaScript 984.3 KB 984.3 KB +28.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 22, 2025

CodSpeed Performance Report

Merging #12518 will not alter performance

Comparing 12-22-chore/bump-swc (fb777a3) with main (e2863bb)

Summary

✅ 17 untouched

@CPunisher CPunisher marked this pull request as ready for review December 22, 2025 06:23
@CPunisher CPunisher requested a review from quininer as a code owner December 22, 2025 06:23
Copilot AI review requested due to automatic review settings December 22, 2025 06:23
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 the SWC dependencies to newer versions: swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.5. This update includes related SWC package updates to maintain compatibility and fixes issue #12492.

  • Updated swc_core and related SWC ecosystem packages to compatible versions
  • Updated swc_experimental packages to version 0.3.5
  • Updated test snapshot to reflect improved parser error message

Reviewed changes

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

File Description
Cargo.toml Updated version specifications for swc_core (52.0.0), swc (50.0.0), swc_ecma_minifier (40.0.0), swc_html_minifier (40.0.0), and swc_experimental packages (0.3.5)
Cargo.lock Lock file updates reflecting all direct and transitive dependency version changes from the Cargo.toml updates
crates/rspack_workspace/src/generated.rs Updated the swc_core version constant from "50.2.3" to "52.0.0" to match Cargo.toml
tests/rspack-test/statsOutputCases/builtin-swc-loader-parse-error/snapshots/stats.txt Updated error message in test snapshot reflecting improved parser error reporting: changed from "got 'error'" to "got 'ident'"

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

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenjiahan chenjiahan merged commit 62c494a into main Dec 22, 2025
80 of 84 checks passed
@chenjiahan chenjiahan deleted the 12-22-chore/bump-swc branch December 22, 2025 08:46
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.

[Bug]: Minifier incorrectly reorders variable assignment in object literal passed to super()

3 participants