diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 6be00395b..5908e23fa 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -39,4 +39,6 @@ semantic = ["oxc_semantic"] transformer = ["oxc_transformer"] minifier = ["oxc_minifier"] codegen = ["oxc_codegen"] -sourcemap = ["oxc_sourcemap"] + +sourcemap = ["oxc_sourcemap"] +sourcemap_concurrent = ["sourcemap", "oxc_sourcemap/concurrent"] diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 0779dcad0..53a036492 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -28,5 +28,5 @@ cfg-if = { workspace = true } rayon = { workspace = true, optional = true } [features] -default = [] -rayon = ["dep:rayon"] +default = [] +concurrent = ["dep:rayon"] diff --git a/tasks/benchmark/Cargo.toml b/tasks/benchmark/Cargo.toml index 19c3d2ef4..26dd233f1 100644 --- a/tasks/benchmark/Cargo.toml +++ b/tasks/benchmark/Cargo.toml @@ -74,7 +74,7 @@ oxc_span = { workspace = true, optional = true } oxc_tasks_common = { workspace = true, optional = true } oxc_transformer = { workspace = true, optional = true } oxc_codegen = { workspace = true, optional = true } -oxc_sourcemap = { workspace = true, features = ["rayon"], optional = true } +oxc_sourcemap = { workspace = true, features = ["concurrent"], optional = true } criterion = { package = "criterion2", version = "0.8.0", default-features = false }