Upgrade swc_core 57 -> 58, swc_sourcemap 9 -> 10, swc_plugin_runner 24 -> 25#91532
Merged
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 17, 2026
Merging this PR will not alter performance
Comparing Footnotes
|
3a26fe4 to
48d399c
Compare
Contributor
Tests Passed |
48d399c to
dc7f06b
Compare
Contributor
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URL |
dc7f06b to
74a9431
Compare
…4 -> 25 Bump SWC ecosystem dependencies to their latest major versions. This is a prerequisite for fully removing the wasmer dependency from the compilation graph. swc_core v58 uses swc_plugin_runner v25 and swc_sourcemap v10. Note: turbopack-ecmascript-plugins has remaining compilation errors from swc_core v58 API changes (Pass trait, Comments trait) that need to be fixed in a follow-up. Update SWC ecosystem dependencies for swc_core v58 compatibility Bump all SWC transform libraries to versions compatible with swc_core v58: - modularize_imports: 0.110.0 -> 0.111.0 - styled_components: 0.139.0 -> 0.140.0 - styled_jsx: 0.114.0 -> 0.115.0 - swc_emotion: 0.115.0 -> 0.116.0 - swc_relay: 0.85.0 -> 0.86.0 These updates ensure all transform libraries use consistent versions of swc_common v19 and swc_ecma_ast v21, matching swc_core v58's internal dependencies. This resolves trait compatibility errors where types from different versions of swc_common were incompatible. Fix compilation errors in swc_core v58 upgrade Update remaining transform libraries to versions compatible with swc_core v58: - remove_console: 0.66.0 -> 0.67.0 - react_remove_properties: 0.65.0 -> 0.66.0 These updates resolve the final trait compatibility errors where SyntaxContext and Pass trait implementations from swc_common v18 and swc_ecma_ast v20 were incompatible with swc_core v58's swc_common v19 and swc_ecma_ast v21. All compilation errors are now resolved and the full integration compiles successfully.
74a9431 to
441f946
Compare
mischnic
approved these changes
Apr 8, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Upgrade SWC dependencies to their latest major versions:
swc_core57 → 58swc_sourcemap9 → 10swc_plugin_runner24 → 25swc_plugin_backend_wasmer7 → 8testing19 → 20Bumps all SWC transform plugin crates to match (
modularize_imports,styled_components,styled_jsx,swc_emotion,swc_relay,react_remove_properties,remove_console).Also updates
mdxjs(git dep) to pick up itsswc_core58 bump, avoiding duplicate compilation of the entire old SWC stack.Known issue:
swc_sourcemapduplicateswc_emotion0.116.0 still depends onswc_sourcemap ^9.3.4, so bothswc_sourcemapv9 and v10 are compiled. This is the only remaining SWC crate duplication. It will be resolved when a newswc_emotionrelease is published that depends onswc_sourcemap10.Why
Needed to support the latest SWC plugin ABI. The
swc_core57 → 58 upgrade includes breaking changes to the ECMAScript AST, parser, codegen, visitor, and transforms_base crates (all bumped one major version).