diff --git a/napi/Cargo.toml b/napi/Cargo.toml index 4531913f..028a3450 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -20,6 +20,6 @@ lightningcss = { path = "../", features = ["nodejs", "serde"] } parcel_sourcemap = { version = "2.1.1", features = ["json"] } serde-detach = "0.0.1" smallvec = { version = "1.7.0", features = ["union"] } -napi = {version = "=2.10.3", default-features = false, features = ["napi4", "napi5", "compat-mode", "serde-json"]} +napi = {version = "2", default-features = false, features = ["napi4", "napi5", "serde-json"]} crossbeam-channel = { version = "0.5.6", optional = true } rayon = { version = "1.5.1", optional = true } diff --git a/node/Cargo.toml b/node/Cargo.toml index 19a6783e..b85a64a9 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] lightningcss-napi = { version = "0.1.0", path = "../napi", features = ["bundler", "visitor"] } -napi = {version = "=2.10.3", default-features = false, features = ["napi4", "napi5", "compat-mode", "serde-json"]} +napi = {version = "=2.10.3", default-features = false, features = ["compat-mode"]} napi-derive = "2" [target.'cfg(target_os = "macos")'.dependencies]