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