mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
refactor(estree): make itoa dependency optional (#9338)
Make `itoa` dependency of `oxc_estree` optional. It's only required if `serialize` feature is enabled. (as pointed out in https://github.com/oxc-project/oxc/pull/9331#issuecomment-2678713071, we want to avoid `oxc_ast` crate having unnecessary dependencies)
This commit is contained in:
1 parent
f21740e26f
commit
2faabe1491
1 file changed
+2
-2
@@ -19,9 +19,9 @@ workspace = true
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
itoa = { workspace = true }
|
||||
itoa = { workspace = true, optional = true }
|
||||
ryu-js = { workspace = true, optional = true }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
serialize = ["dep:ryu-js"]
|
||||
serialize = ["dep:itoa", "dep:ryu-js"]
|
||||
Reference in new issue
Block a user