mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-22 04:32:13 +00: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));
|
module_name));
|
||||||
format!("var wasm;")
|
format!("var wasm;")
|
||||||
} else {
|
} else {
|
||||||
format!("import * as wasm from './{}_bg';", module_name)
|
format!("import * as wasm from './{}_bg.wasm';", module_name)
|
||||||
};
|
};
|
||||||
|
|
||||||
format!("\
|
format!("\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user