mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
Merge pull request #313 from jamen/support-rollup
Make JS use a '.wasm' extension when importing the binary
This commit is contained in:
commit
5adda0d591
@ -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