feat(sourcemap): add feature "sourcemap_concurrent"

This commit is contained in:
Boshen 2024-05-14 00:04:27 +08:00
parent eefb66f750
commit f6daf0b7ae
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
3 changed files with 6 additions and 4 deletions

View file

@ -39,4 +39,6 @@ semantic = ["oxc_semantic"]
transformer = ["oxc_transformer"] transformer = ["oxc_transformer"]
minifier = ["oxc_minifier"] minifier = ["oxc_minifier"]
codegen = ["oxc_codegen"] codegen = ["oxc_codegen"]
sourcemap = ["oxc_sourcemap"]
sourcemap = ["oxc_sourcemap"]
sourcemap_concurrent = ["sourcemap", "oxc_sourcemap/concurrent"]

View file

@ -28,5 +28,5 @@ cfg-if = { workspace = true }
rayon = { workspace = true, optional = true } rayon = { workspace = true, optional = true }
[features] [features]
default = [] default = []
rayon = ["dep:rayon"] concurrent = ["dep:rayon"]

View file

@ -74,7 +74,7 @@ oxc_span = { workspace = true, optional = true }
oxc_tasks_common = { workspace = true, optional = true } oxc_tasks_common = { workspace = true, optional = true }
oxc_transformer = { workspace = true, optional = true } oxc_transformer = { workspace = true, optional = true }
oxc_codegen = { 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 } criterion = { package = "criterion2", version = "0.8.0", default-features = false }