Make JS use a '.wasm' extension when importing the binary

This commit is contained in:
Jamen Marz 2018-06-25 12:57:02 -06:00
parent 7936e1eb27
commit a596dc4129
No known key found for this signature in database
GPG Key ID: 88CEF5A09D29321F
2 changed files with 11 additions and 11 deletions

View File

@ -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!("\