mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
added explicit extension for imported .wasm file for --target bundler
This commit is contained in:
parent
7fe3dfd4f5
commit
8f52f10aea
@ -284,7 +284,7 @@ impl<'a> Context<'a> {
|
||||
| OutputMode::Node {
|
||||
experimental_modules: true,
|
||||
} => {
|
||||
imports.push_str(&format!("import * as wasm from './{}_bg';\n", module_name));
|
||||
imports.push_str(&format!("import * as wasm from './{}_bg.wasm';\n", module_name));
|
||||
for (id, js) in sorted_iter(&self.wasm_import_definitions) {
|
||||
let import = self.module.imports.get_mut(*id);
|
||||
import.module = format!("./{}.js", module_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user