From 574781ffe932178aaf428d8d636b512ac38e1e1b Mon Sep 17 00:00:00 2001 From: Pufferfish101007 <50246616+pufferfish101007@users.noreply.github.com> Date: Wed, 23 Aug 2023 17:25:58 +0000 Subject: [PATCH] don't add an extra noop step function to te wasm --- src/targets/wasm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/targets/wasm.rs b/src/targets/wasm.rs index 115a114..b2a1aa6 100644 --- a/src/targets/wasm.rs +++ b/src/targets/wasm.rs @@ -987,6 +987,8 @@ impl From for WebWasmFile { step_funcs.insert(None, noop_func); for step in &project.steps { + // make sure to skip the 0th (noop) step because we've added the noop step function 3 lines above + if step.0 == "" { continue }; step.compile_wasm(&mut step_funcs, &mut string_consts, &project.steps); }