Make console_error_panic_hook required for frontend only

This commit is contained in:
Ethan Girouard 2024-05-16 18:47:45 -04:00
parent 78d8e1243d
commit 618b7d65ce
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -8,7 +8,7 @@ build = "src/build.rs"
crate-type = ["cdylib", "rlib"]
[dependencies]
console_error_panic_hook = "0.1"
console_error_panic_hook = { version = "0.1", optional = true }
cfg-if = "1"
http = "1.0"
leptos = { version = "0.6", features = ["nightly"] }
@ -43,7 +43,12 @@ flexi_logger = { version = "0.28.0", optional = true, default-features = false }
gloo-net = { git = "https://github.com/rustwasm/gloo.git", rev = "a823fab7ecc4068e9a28bd669da5eaf3f0a56380" }
[features]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
hydrate = [
"leptos/hydrate",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"console_error_panic_hook",
]
ssr = [
"dep:leptos_axum",
"leptos/ssr",