소스 검색

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");
         }
 
+        // 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);