Skip to content

Commit 95c800c

Browse files
kdy1huozhi
authored andcommitted
fix: Update swc_core and use rayon instead of chili (#77338)
Use `rayon` for parallelism `chili` seems to have some bugs regarding the CPU usage of heartbeat thread in idle mode. - Closes #77192
1 parent 804aa35 commit 95c800c

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Cargo.lock

Lines changed: 12 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,11 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
296296
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }
297297

298298
# SWC crates
299-
swc_core = { version = "16.4.0", features = [
299+
swc_core = { version = "16.9.0", features = [
300300
"ecma_loader_lru",
301301
"ecma_loader_parking_lot",
302302
] }
303+
swc_parallel = { version = "1.3.0", default-features = false, features = ["rayon"] }
303304
testing = { version = "8.0.0" }
304305

305306
# Keep consistent with preset_env_base through swc_core

crates/napi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ swc_core = { workspace = true, features = [
9595
"ecma_utils",
9696
"ecma_visit",
9797
] }
98+
swc_parallel = { workspace = true, default-features = false, features = ["rayon"] }
9899

99100
# Dependencies for the native, non-wasm32 build.
100101
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

turbopack/crates/turbopack-ecmascript/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ swc_core = { workspace = true, features = [
7171
"testing",
7272
"base",
7373
] }
74+
swc_parallel = { workspace = true, default-features = false, features = ["rayon"] }
7475

7576
[dev-dependencies]
7677
criterion = { workspace = true, features = ["async_tokio"] }

0 commit comments

Comments
 (0)