Przeglądaj źródła

fix: don't accidentally generate .d.ts files with wasm-bindgen (#3577)

* no typescript flag

* move field
Jonathan Kelley 5 miesięcy temu
rodzic
commit
db16de15c5
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      packages/cli/src/wasm_bindgen.rs

+ 3 - 0
packages/cli/src/wasm_bindgen.rs

@@ -52,6 +52,9 @@ impl WasmBindgen {
             args.push("--remove-producers-section");
         }
 
+        // wbg generates typescript bindnings by default - we don't want those
+        args.push("--no-typescript");
+
         // Out name
         args.push("--out-name");
         args.push(&self.out_name);