From faf172d9ebb65da1e5e34ced4805c04a5eb93eee Mon Sep 17 00:00:00 2001 From: Beni Bachmann Date: Wed, 24 Jul 2024 21:04:36 +0200 Subject: [PATCH] Disable ExportRegistryPlugin on WASM Because it tries to write to the assets directory --- crates/blenvy/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/blenvy/src/lib.rs b/crates/blenvy/src/lib.rs index abec7ac..9df591f 100644 --- a/crates/blenvy/src/lib.rs +++ b/crates/blenvy/src/lib.rs @@ -60,6 +60,7 @@ impl Plugin for BlenvyPlugin { fn build(&self, app: &mut App) { app.add_plugins(( ComponentsFromGltfPlugin::default(), + #[cfg(not(target_arch = "wasm32"))] ExportRegistryPlugin::default(), BlueprintsPlugin::default(), ))