We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 835913c commit 61b4ccaCopy full SHA for 61b4cca
crates/cli-support/src/lib.rs
@@ -659,10 +659,11 @@ impl Output {
659
let wasm_name = format!("{}_bg", self.stem);
660
let wasm_path = out_dir.join(&wasm_name).with_extension("wasm");
661
fs::create_dir_all(out_dir)?;
662
- let wasm_bytes = self.module.emit_wasm();
663
- fs::write(&wasm_path, wasm_bytes)
664
- .with_context(|| format!("failed to write `{}`", wasm_path.display()))?;
665
-
+ if !self.generated.mode.inline_nodejs() {
+ let wasm_bytes = self.module.emit_wasm();
+ fs::write(&wasm_path, wasm_bytes)
+ .with_context(|| format!("failed to write `{}`", wasm_path.display()))?;
666
+ }
667
let gen = &self.generated;
668
669
// Write out all local JS snippets to the final destination now that
0 commit comments