feat: rename generated file to have bg instead of wasm

This commit is contained in:
Sendil Kumar
2018-03-05 22:25:14 +01:00
parent 644e96cd46
commit d5ac523fe2
11 changed files with 26 additions and 26 deletions

View File

@ -214,7 +214,7 @@ impl<'a> Context<'a> {
let js = format!("
/* tslint:disable */
import * as wasm from './{module_name}_wasm'; // imports from wasm file
import * as wasm from './{module_name}_bg'; // imports from wasm file
{imports}
{globals}

View File

@ -105,7 +105,7 @@ impl Bindgen {
.write_all(ts.as_bytes()).unwrap();
}
let wasm_path = out_dir.join(format!("{}_wasm", stem)).with_extension("wasm");
let wasm_path = out_dir.join(format!("{}_bg", stem)).with_extension("wasm");
let wasm_bytes = parity_wasm::serialize(module).map_err(|e| {
format_err!("{:?}", e)
})?;