diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 30e1fb4750310b..5244cf16594a3c 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -3,6 +3,7 @@ use bevy_math::{DVec2, IVec2, UVec2, Vec2}; use bevy_reflect::{FromReflect, Reflect}; use bevy_utils::{tracing::warn, Uuid}; use raw_window_handle::RawWindowHandle; +#[cfg(target_arch = "wasm32")] use wasm_bindgen::JsCast; #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Reflect, FromReflect)]