diff --git a/crates/swc_estree_ast/Cargo.toml b/crates/swc_estree_ast/Cargo.toml index dce423d28816..001f0702b76e 100644 --- a/crates/swc_estree_ast/Cargo.toml +++ b/crates/swc_estree_ast/Cargo.toml @@ -17,9 +17,14 @@ version = "0.19.38" [lib] bench = false +[features] +default = ["serde-impl"] +serde-impl = ["serde"] + [dependencies] better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } -serde = { version = "1", features = ["derive"] } +serde = { version = "1", features = ["derive"], optional = true } serde_json = "1" -swc_atoms = { version = "0.4.39", path = "../swc_atoms" } -swc_common = { version = "0.29.38", path = "../swc_common" } + +swc_atoms = { version = "0.4.39", path = "../swc_atoms" } +swc_common = { version = "0.29.38", path = "../swc_common" }