Make JS use a '.wasm' extension when importing the binary
@@ -365,7 +365,7 @@ impl<'a> Context<'a> {
module_name));
format!("var wasm;")
} else {
- format!("import * as wasm from './{}_bg';", module_name)
+ format!("import * as wasm from './{}_bg.wasm';", module_name)
};
format!("\
