Skip to content

Commit 9760eaa

Browse files
daxpeddajakobhellermann
authored andcommitted
Use --weak-refs and --reference-types with wasm-bindgen
1 parent 4947206 commit 9760eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasm_bindgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn generate(options: &Options, wasm_file: &Path) -> Result<WasmBindgenOutput
1515
debug!("running wasm-bindgen...");
1616
let start = std::time::Instant::now();
1717
let mut bindgen = wasm_bindgen_cli_support::Bindgen::new();
18-
bindgen.input_path(wasm_file).typescript(false);
18+
bindgen.input_path(wasm_file).typescript(false).weak_refs(true).reference_types(true);
1919

2020
if options.no_module {
2121
bindgen.no_modules(true)?;

0 commit comments

Comments
 (0)