1
0
Эх сурвалжийг харах

fix: compile router on web

Jonathan Kelley 3 жил өмнө
parent
commit
ed07e914d3

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus"
-version = "0.2.1"
+version = "0.2.2"
 authors = ["Jonathan Kelley"]
 edition = "2021"
 description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"

+ 2 - 1
packages/router/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-router"
-version = "0.2.1"
+version = "0.2.2"
 edition = "2018"
 description = "Cross-platform router for Dioxus apps"
 license = "MIT/Apache-2.0"
@@ -28,6 +28,7 @@ web-sys = { version = "0.3", features = [
     "Url",
     "UrlSearchParams",
     "Window",
+    "Location"
 ], optional = true }
 wasm-bindgen = { version = "0.2", optional = true }
 js-sys = { version = "0.3", optional = true }