diff --git a/crates/engine/src/cmd/plugin.rs b/crates/engine/src/cmd/plugin.rs index 10899074d9..c8a3c2b46a 100644 --- a/crates/engine/src/cmd/plugin.rs +++ b/crates/engine/src/cmd/plugin.rs @@ -1914,6 +1914,9 @@ pub(crate) fn install_folder(s: &mut Session, load: &mut FolderPending, turn: &S /// the grants of ids whose module lists no permissions are forgotten while no `plugin.install` can /// record one for another module → its report; saves the disabled list when loading changed it. pub(crate) fn end_folder(s: &mut Session, mut load: FolderPending, turn: &StoreTurn) -> Value { + // Only native builds load modules, so only they save the disabled list. + #[cfg(target_arch = "wasm32")] + let _ = (s, turn); let (report, retry) = match load.load.take() { #[cfg(not(target_arch = "wasm32"))] Some(Ok(modules)) => {