1--- a/src/build/bundle.rs
2+++ b/src/build/bundle.rs
3@@ -334,7 +334,7 @@ impl AppBundle {
4 // Only run wasm-opt if the feature is enabled
5 // Wasm-opt has an expensive build script that makes it annoying to keep enabled for iterative dev
6 // We put it behind the "wasm-opt" feature flag so that it can be disabled when iterating on the cli
7- self.run_wasm_opt(&self.build.exe_dir())?;
8+ self.run_wasm_opt(&self.build.wasm_bindgen_out_dir())?;
9
10 // Write the index.html file with the pre-configured contents we got from pre-rendering
11 std::fs::write(