fix: build the editor without tree-sitter on wasm
This commit is contained in:
@@ -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"] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user