mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 12:06:14 +03:00
Make JS use a '.wasm' extension when importing the binary
This commit is contained in:
parent
7936e1eb27
commit
a596dc4129
@ -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!("\
|
||||
|
Loading…
Reference in New Issue
Block a user