فهرست منبع

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);