Skip to content

Revert "chore: upgrade swc_core from 66 to 67"#14168

Merged
JSerFeng merged 1 commit into
mainfrom
revert-14135-cursor/upgrade-swc-crates-905d
May 27, 2026
Merged

Revert "chore: upgrade swc_core from 66 to 67"#14168
JSerFeng merged 1 commit into
mainfrom
revert-14135-cursor/upgrade-swc-crates-905d

Conversation

@JSerFeng

Copy link
Copy Markdown
Contributor

Reverts #14135 as there is a breaking of swc helpers

Copilot AI review requested due to automatic review settings May 27, 2026 03:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54ca8b4d93

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts the previously introduced SWC toolchain upgrade (swc_core 67.x) back to the prior pinned SWC versions to avoid breakage caused by changes in SWC helpers.

Changes:

  • Downgrade swc_core from 67.0.1 to 66.0.2 and align related SWC crate pins in the workspace Cargo.toml.
  • Regenerate crates/rspack_workspace/src/generated.rs to reflect the restored swc_core version.
  • Update Cargo.lock to match the reverted dependency graph.

Reviewed changes

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

File Description
crates/rspack_workspace/src/generated.rs Updates generated SWC version constant back to 66.0.2 to match workspace pins.
Cargo.toml Reverts pinned SWC-related dependency versions (including swc_core) to the previous set.
Cargo.lock Reflects the reverted SWC dependency resolution and checksums.

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

@github-actions

Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 54ca8b4 to fix(cli): block prototype-pollution payloads in --env parsing (#14165) by pshu

🎉 Size decreased by 11.94KB from 61.82MB to 61.80MB (⬇️0.02%)

@github-actions

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 1 project with changes.

📊 Quick Summary
Project Total Size Change
popular-libs 1.7 MB -48.0 B (-0.0%)
react-10k 5.7 MB 0
react-1k 826.4 KB 0
react-5k 2.7 MB 0
ui-components 4.8 MB 0
📋 Detailed Reports (Click to expand)

📁 popular-libs

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

📌 Baseline Commit: d05392f2fd | PR: #14165

Metric Current Baseline Change
📊 Total Size 1.7 MB 1.7 MB -48.0 B (-0.0%)
📄 JavaScript 1.7 MB 1.7 MB -48.0 B (-0.0%)
🎨 CSS 0 B 0 B 0
🌐 HTML 289.0 B 289.0 B 0
📁 Other Assets 0 B 0 B 0

📦 Download Diff Report: popular-libs Bundle Diff

Generated by Rsdoctor GitHub Action

@codspeed-hq

codspeed-hq Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by 6.87%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 36 untouched benchmarks
⏩ 25 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation rust@create_chunk_ids 6.7 ms 6.2 ms +6.87%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing revert-14135-cursor/upgrade-swc-crates-905d (54ca8b4) with main (d05392f)

Open in CodSpeed

Footnotes

  1. 25 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@JSerFeng JSerFeng enabled auto-merge (squash) May 27, 2026 05:41
@JSerFeng JSerFeng merged commit e428ea2 into main May 27, 2026
38 checks passed
@JSerFeng JSerFeng deleted the revert-14135-cursor/upgrade-swc-crates-905d branch May 27, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants