diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock index bb9dcccc79d6..e43d21078e0b 100644 --- a/bindings/Cargo.lock +++ b/bindings/Cargo.lock @@ -276,6 +276,7 @@ dependencies = [ "napi-derive", "node_macro_deps", "path-clean 0.1.0", + "proc-macro2", "serde", "serde_json", "sourcemap", @@ -297,6 +298,7 @@ version = "1.4.15-nightly-20240416.3" dependencies = [ "anyhow", "getrandom", + "proc-macro2", "serde", "serde-wasm-bindgen", "swc_core", @@ -3079,6 +3081,7 @@ name = "swc_cli" version = "0.91.219" dependencies = [ "anyhow", + "proc-macro2", "swc_cli_impl", ] diff --git a/bindings/binding_minifier_node/Cargo.toml b/bindings/binding_minifier_node/Cargo.toml index c0750fdfe3d0..65489acb8c66 100644 --- a/bindings/binding_minifier_node/Cargo.toml +++ b/bindings/binding_minifier_node/Cargo.toml @@ -27,6 +27,7 @@ napi-derive = { version = "2", default-features = false, features = [ ] } node_macro_deps = { path = "../node_macro_deps" } path-clean = "0.1" +proc-macro2 = "=1.0.79" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["unbounded_depth"] } sourcemap = "8.0.0" @@ -35,6 +36,7 @@ tracing-chrome = "0.5.0" tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } + swc_compiler_base = { version = "0.7.20", features = ["node"] } swc_config = "0.1.12" swc_core = { version = "0.90.33", features = [ diff --git a/bindings/binding_minifier_wasm/Cargo.toml b/bindings/binding_minifier_wasm/Cargo.toml index d855fffbd6ab..949935f29c44 100644 --- a/bindings/binding_minifier_wasm/Cargo.toml +++ b/bindings/binding_minifier_wasm/Cargo.toml @@ -33,6 +33,7 @@ plugin = [] [dependencies] anyhow = "1.0.66" getrandom = { version = "0.2.10", features = ["js"] } +proc-macro2 = "=1.0.79" serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.5" swc_core = { version = "0.90.33", features = [ diff --git a/bindings/node_macro_deps/Cargo.toml b/bindings/node_macro_deps/Cargo.toml index f0418afbc148..6e41c37afae9 100644 --- a/bindings/node_macro_deps/Cargo.toml +++ b/bindings/node_macro_deps/Cargo.toml @@ -12,5 +12,5 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" +proc-macro2 = "=1.0.79" quote = "1" diff --git a/bindings/swc_cli/Cargo.toml b/bindings/swc_cli/Cargo.toml index ee94a2c07c34..c71c5643b015 100644 --- a/bindings/swc_cli/Cargo.toml +++ b/bindings/swc_cli/Cargo.toml @@ -19,4 +19,5 @@ plugin = ["swc_cli_impl/plugin"] [dependencies] anyhow = "1.0.66" +proc-macro2 = "=1.0.79" swc_cli_impl = "0.8.25"