fix: build the editor without tree-sitter on wasm

This commit is contained in:
2026-11-10 21:02:24 +07:00
parent 0192c50157
commit 21646952ce
2 changed files with 22 additions and 1 deletions
+3 -1
View File
@@ -11,7 +11,6 @@ gpui-native-icons = { workspace = true, optional = true }
gpui-native-theme = { workspace = true }
gpui-native-utils = { workspace = true }
log = "0.4"
tree-sitter = "0.25"
similar = "2"
pulldown-cmark = { version = "0.13", default-features = false, optional = true }
tree-sitter-rust = { version = "0.24", optional = true }
@@ -19,6 +18,9 @@ tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-javascript = { version = "0.23", optional = true }
tree-sitter-python = { version = "0.23", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tree-sitter = "0.25"
[dev-dependencies]
gpui = { workspace = true, features = ["test-support"] }