Skip to content

Conversation

@CPunisher
Copy link
Contributor

@CPunisher CPunisher commented Dec 15, 2025

Summary

SWC full changelog: https://github.com/swc-project/swc/blob/main/CHANGELOG-CORE.md
SWC experimental changelog: CPunisher/swc-experimental@v0.3.1...v0.3.3. Most of them are bug fixes.

Note that it introduces wasm plugin breaking.

Checklist

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

Copilot AI review requested due to automatic review settings December 15, 2025 03:27
@CPunisher CPunisher requested a review from quininer as a code owner December 15, 2025 03:27
@CPunisher CPunisher marked this pull request as draft December 15, 2025 03:28
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 15, 2025
@netlify
Copy link

netlify bot commented Dec 15, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 01352cb
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/693ff7888db2690008c110ae

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 from version 46.0.3 to 50.2.2, along with all related SWC dependencies to maintain version consistency. The update includes a breaking change for WASM plugins as noted in the PR description.

  • Updates all Rust SWC packages (swc, swc_core, swc_ecma_minifier, swc_error_reporters, swc_html, swc_html_minifier, swc_node_comments, swc_plugin_runner)
  • Updates JavaScript test dependency @swc/plugin-remove-console to v12.0.1
  • Regenerates version constants in generated.rs

Reviewed changes

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

Show a summary per file
File Description
Cargo.toml Updates swc_core to 50.2.2 and related swc dependencies to compatible versions
Cargo.lock Reflects transitive dependency updates including new versions of swc_atoms, swc_common, swc_ecma_ast and others
crates/rspack_workspace/src/generated.rs Updates the swc_core version constant from "46.0.3" to "50.2.2"
tests/rspack-test/package.json Updates @swc/plugin-remove-console from ^10.0.0 to ^12.0.1
pnpm-lock.yaml Updates lockfile entries for @swc/plugin-remove-console to 12.0.1
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@CPunisher CPunisher changed the title chore: bump swc_core from 46.0.3 to 50.2.2 chore: bump swc_core from 46.0.3 to 50.2.2 and swc_experimental Dec 15, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

Rsdoctor Bundle Diff Analysis

Found 5 project(s) in monorepo.

📁 react-10k

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

📌 Baseline Commit: 02b3377e3d | PR: #12455

Metric Current Baseline Change
📊 Total Size 5.7 MB 5.7 MB -153.0 B (-0.0%)
📄 JavaScript 5.7 MB 5.7 MB -153.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: 02b3377e3d | PR: #12455

Metric Current Baseline Change
📊 Total Size 823.4 KB 823.6 KB -153.0 B (-0.0%)
📄 JavaScript 823.4 KB 823.6 KB -153.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: 02b3377e3d | PR: #12455

Metric Current Baseline Change
📊 Total Size 2.7 MB 2.7 MB -153.0 B (-0.0%)
📄 JavaScript 2.7 MB 2.7 MB -153.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: 02b3377e3d | PR: #12455

Metric Current Baseline Change
📊 Total Size 984.3 KB 984.3 KB 0 B (0.0%)
📄 JavaScript 984.3 KB 984.3 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: rome Bundle Diff

📁 ui-components

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

📌 Baseline Commit: 02b3377e3d | PR: #12455

Metric Current Baseline Change
📊 Total Size 2.1 MB 2.1 MB -1.6 KB (-0.1%)
📄 JavaScript 2.0 MB 2.0 MB -1.6 KB (-0.1%)
🎨 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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

📦 Binary Size-limit

Comparing ee925a5 to refactor: extract common utility functions to rspack_util (#12447) by harpsealjs

❌ Size increased by 91.88KB from 48.21MB to 48.30MB (⬆️0.19%)

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 15, 2025

CodSpeed Performance Report

Merging #12445 will not alter performance

Comparing 12-15-bump/swc (01352cb) with main (02b3377)

Summary

✅ 17 untouched

@CPunisher CPunisher changed the title chore: bump swc_core from 46.0.3 to 50.2.2 and swc_experimental chore: bump swc_core from 46.0.3 to 50.2.3 and swc_experimental Dec 15, 2025
@CPunisher CPunisher marked this pull request as ready for review December 15, 2025 12:34
@chenjiahan chenjiahan merged commit 5fade2f into main Dec 16, 2025
50 of 52 checks passed
@chenjiahan chenjiahan deleted the 12-15-bump/swc branch December 16, 2025 08:22
@chenjiahan chenjiahan changed the title chore: bump swc_core from 46.0.3 to 50.2.3 and swc_experimental feat(deps)!: bump swc_core from 46.0.3 to 50.2.3 and swc_experimental Dec 16, 2025
@chenjiahan chenjiahan added the release: feature release: feature related release(mr only) label Dec 16, 2025
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.

4 participants