Skip to content

Commit 85c64ad

Browse files
wan9chiclaude
andcommitted
fix(napi): enable napi tracing feature in vite_task_client_napi
napi-derive emits `napi::bindgen_prelude::tracing` references when its `tracing` feature is active. In a workspace where another napi consumer (e.g. rolldown's binding in Vite+) turns that on via feature unification, `vite_task_client_napi` failed to compile because its `napi` dependency lacked the matching `tracing` feature. Enable it so the embedded addon builds regardless of how napi-derive's features are unified downstream. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent fee89d8 commit 85c64ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/vite_task_client_napi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = false
1212
doctest = false
1313

1414
[dependencies]
15-
napi = { workspace = true, features = ["napi6"] }
15+
napi = { workspace = true, features = ["napi6", "tracing"] }
1616
napi-derive = { workspace = true }
1717
vite_str = { workspace = true }
1818
vite_task_client = { workspace = true }

0 commit comments

Comments
 (0)