Files
nixpkgs/pkgs/by-name/di/dioxus-cli/fix-wasm-opt-target-dir.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
660 B
Diff
Raw Permalink Normal View History

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