From 7b43e8d0da25144376d5900f177f07aaeceab7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 24 Mar 2023 13:32:22 +0900 Subject: [PATCH] serde feature for `swc_estree_ast` --- crates/swc_estree_ast/Cargo.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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" }