mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 09:11:35 +00:00
feat: rename generated file to have bg instead of wasm
This commit is contained in:
@ -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}
|
||||
|
@ -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)
|
||||
})?;
|
||||
|
Reference in New Issue
Block a user