Skip to content

Commit e7ce94b

Browse files
authoredJul 15, 2024··
test: Enable scoped API by default (#9247)
**Description:** This PR is to profile real performance using codspeed
1 parent 887d7a2 commit e7ce94b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
 

‎crates/swc_allocator/Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ version = "0.1.5"
1414

1515

1616
[features]
17-
rkyv = ["dep:rkyv"]
18-
scoped = []
19-
serde = ["dep:serde", "dep:serde_derive"]
17+
default = ["scoped"]
18+
rkyv = ["dep:rkyv"]
19+
scoped = []
20+
serde = ["dep:serde", "dep:serde_derive"]
2021

2122
[dependencies]
2223
allocator-api2 = { workspace = true, features = ["serde"] }

‎crates/swc_common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ url = { workspace = true }
6565
ast_node = { version = "0.9.8", path = "../ast_node" }
6666
better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" }
6767
from_variant = { version = "0.1.8", path = "../from_variant" }
68-
swc_allocator = { version = "0.1.1", path = "../swc_allocator" }
68+
swc_allocator = { version = "0.1.1", path = "../swc_allocator", default-features = false }
6969
swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
7070
swc_eq_ignore_macros = { version = "0.1.3", path = "../swc_eq_ignore_macros" }
7171
swc_visit = { version = "0.5.14", path = "../swc_visit" }

‎crates/swc_core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ swc_transform_common = { optional = true, version = "0.1.0", path =
383383
swc_typescript = { optional = true, version = "0.2.0", path = "../swc_typescript" }
384384
testing = { optional = true, version = "0.37.0", path = "../testing" }
385385
# TODO: eventually swc_plugin_runner needs to remove default features
386-
swc_allocator = { version = "0.1.2", path = "../swc_allocator" }
386+
swc_allocator = { version = "0.1.2", path = "../swc_allocator", default-features = false }
387387
swc_plugin_runner = { optional = true, version = "0.110.0", path = "../swc_plugin_runner", default-features = false }
388388

389389
[build-dependencies]

0 commit comments

Comments
 (0)
Please sign in to comment.