Commit 247bbf7e authored by Luke Sandberg's avatar Luke Sandberg

Upgrade swc_core 57 -> 58, swc_sourcemap 9 -> 10, swc_plugin_runner 24 -> 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.
parent 25f16f93
......@@ -4818,7 +4818,7 @@ dependencies = [
"serde_path_to_error",
"smallvec",
"swc_core 58.0.4",
"swc_sourcemap 9.3.4",
"swc_sourcemap 10.0.2",
"thiserror 1.0.69",
"tracing",
"turbo-bincode",
......@@ -7608,11 +7608,11 @@ dependencies = [
"swc_error_reporters 21.0.0",
"swc_node_comments",
"swc_plugin_backend_wasmer",
"swc_plugin_proxy 21.0.0",
"swc_plugin_runner 25.0.0",
"swc_plugin_proxy",
"swc_plugin_runner",
"swc_sourcemap 10.0.2",
"swc_timer",
"swc_transform_common 13.0.0",
"swc_transform_common",
"swc_visit",
"tokio",
"tracing",
......@@ -7857,8 +7857,8 @@ dependencies = [
"swc_ecma_transforms_typescript",
"swc_ecma_utils 27.0.0",
"swc_ecma_visit 21.0.0",
"swc_plugin_proxy 21.0.0",
"swc_plugin_runner 25.0.0",
"swc_plugin_proxy",
"swc_plugin_runner",
"testing 20.0.0",
"vergen",
]
......@@ -9077,7 +9077,7 @@ dependencies = [
"enumset",
"parking_lot",
"swc_common 19.0.0",
"swc_plugin_runner 25.0.0",
"swc_plugin_runner",
"wasmer",
"wasmer-compiler-cranelift",
"wasmer-wasix",
......@@ -9089,7 +9089,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"once_cell",
"swc_plugin_runner 24.0.0",
"swc_plugin_runner",
"wasmtime",
"wasmtime-wasi",
]
......@@ -9105,20 +9105,6 @@ dependencies = [
"syn 2.0.104",
]
[[package]]
name = "swc_plugin_proxy"
version = "20.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e78e1a9d26be495289cb07b9d73222f92f60b74d47904169d3ce4977600ec11e"
dependencies = [
"better_scoped_tls",
"rustc-hash 2.1.1",
"swc_common 18.0.1",
"swc_ecma_ast 20.0.1",
"swc_trace_macro",
"tracing",
]
[[package]]
name = "swc_plugin_proxy"
version = "21.0.0"
......@@ -9134,25 +9120,6 @@ dependencies = [
"tracing",
]
[[package]]
name = "swc_plugin_runner"
version = "24.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a48f119fba50bb6bbf54366fc37a7e0c4d94a641936a082330cc6ab8e3f947d"
dependencies = [
"anyhow",
"parking_lot",
"rustc-hash 2.1.1",
"serde",
"serde_json",
"swc_atoms",
"swc_common 18.0.1",
"swc_plugin_proxy 20.0.0",
"swc_transform_common 12.0.0",
"tracing",
"vergen",
]
[[package]]
name = "swc_plugin_runner"
version = "25.0.0"
......@@ -9168,8 +9135,8 @@ dependencies = [
"swc_atoms",
"swc_common 19.0.0",
"swc_ecma_ast 21.0.0",
"swc_plugin_proxy 21.0.0",
"swc_transform_common 13.0.0",
"swc_plugin_proxy",
"swc_transform_common",
"tracing",
"vergen",
]
......@@ -9249,18 +9216,6 @@ dependencies = [
"syn 2.0.104",
]
[[package]]
name = "swc_transform_common"
version = "12.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6cc4a0e2aa9fac44d383127e01327710416dda5b637b0d134b7b8cf2ba6bde8e"
dependencies = [
"better_scoped_tls",
"rustc-hash 2.1.1",
"serde",
"swc_common 18.0.1",
]
[[package]]
name = "swc_transform_common"
version = "13.0.0"
......@@ -10745,7 +10700,7 @@ dependencies = [
"serde_json",
"smallvec",
"swc_core 58.0.4",
"swc_sourcemap 9.3.4",
"swc_sourcemap 10.0.2",
"tempfile",
"tokio",
"tracing",
......@@ -10870,7 +10825,7 @@ dependencies = [
"smallvec",
"strsim 0.11.1",
"swc_core 58.0.4",
"swc_sourcemap 9.3.4",
"swc_sourcemap 10.0.2",
"tokio",
"tracing",
"turbo-bincode",
......
......@@ -317,7 +317,7 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
# SWC crates
swc_core = { version = "57.0.0", default-features = false, features = [
swc_core = { version = "58.0.4", default-features = false, features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
"parallel_rayon",
......@@ -447,7 +447,7 @@ smallvec = { version = "1.15.1", features = [
] }
shrink-to-fit = "0.2.10"
strsim = "0.11.1"
swc_sourcemap = "9.3.4"
swc_sourcemap = "10.0.2"
syn = "2.0.100"
tempfile = "3.20.0"
terminal_size = "0.3.0"
......
......@@ -10,6 +10,6 @@ workspace = true
[dependencies]
anyhow = { workspace = true }
once_cell = { workspace = true }
swc_plugin_runner = { version = "24.0.0", default-features = false }
swc_plugin_runner = { version = "25.0.0", default-features = false }
wasmtime = { workspace = true }
wasmtime-wasi = { workspace = true }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment