From 462cc53b04c02a26d275ddaceffaa9b75d1b4eb6 Mon Sep 17 00:00:00 2001 From: Ashley Williams Date: Tue, 16 Jul 2019 13:10:27 -0500 Subject: [PATCH] feat(bindgen): update to --target flag interface --- src/bindgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindgen.rs b/src/bindgen.rs index 898743dc1..656003fd6 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -42,7 +42,7 @@ pub fn wasm_bindgen_build( }; let bindgen_path = bindgen.binary("wasm-bindgen")?; let target_arg = match target { - Target::Nodejs => "--nodejs", + Target::Nodejs => "--target nodejs", Target::NoModules => "--no-modules", Target::Web => { if supports_web_target(&bindgen_path)? {