Compare commits

...

3 Commits

Author SHA1 Message Date
Greg Johnston
e5fc3eccec CI: narrow scope of Wasm testing 2023-02-12 19:02:51 -05:00
Greg Johnston
147770b714 regression test 2023-02-12 18:58:07 -05:00
Greg Johnston
236807135e fix: misnamed import 2023-02-12 18:56:35 -05:00
5 changed files with 22 additions and 2 deletions

View File

@@ -12,13 +12,21 @@ dependencies = ["build", "check-examples", "test"]
[tasks.build]
clear = true
dependencies = ["build-all"]
dependencies = ["build-all", "build-wasm"]
[tasks.build-all]
command = "cargo"
args = ["+nightly", "build-all-features"]
install_crate = "cargo-all-features"
[tasks.build-wasm]
clear = true
dependencies = [
{ name = "build-wasm", path = "leptos_reactive" },
{ name = "build-wasm", path = "leptos_dom" },
{ name = "build-wasm", path = "leptos_server" },
]
[tasks.check-examples]
clear = true
dependencies = [

4
leptos_dom/Makefile.toml Normal file
View File

@@ -0,0 +1,4 @@
[tasks.build-wasm]
command = "cargo"
args = ["+nightly", "build-all-features", "--target=wasm32-unknown-unknown"]
install_crate = "cargo-all-features"

View File

@@ -443,7 +443,7 @@ impl<El: ElementDescriptor + 'static> HtmlElement<El> {
let waker = Rc::new(RefCell::new(None::<Waker>));
let ready = Rc::new(OnceCell::new());
crate::request_animation_frame({
crate::helpers::request_animation_frame({
let waker = waker.clone();
let ready = ready.clone();

View File

@@ -0,0 +1,4 @@
[tasks.build-wasm]
command = "cargo"
args = ["+nightly", "build-all-features", "--target=wasm32-unknown-unknown"]
install_crate = "cargo-all-features"

View File

@@ -0,0 +1,4 @@
[tasks.build-wasm]
command = "cargo"
args = ["+nightly", "build-all-features", "--target=wasm32-unknown-unknown"]
install_crate = "cargo-all-features"