浏览代码

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

* no typescript flag

* move field
Jonathan Kelley 5 月之前
父节点
当前提交
db16de15c5
共有 1 个文件被更改,包括 3 次插入0 次删除
  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");
             args.push("--remove-producers-section");
         }
         }
 
 
+        // wbg generates typescript bindnings by default - we don't want those
+        args.push("--no-typescript");
+
         // Out name
         // Out name
         args.push("--out-name");
         args.push("--out-name");
         args.push(&self.out_name);
         args.push(&self.out_name);