mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #1646 from ibaryshnikov/explicit-extension
Added explicit extension for imported .wasm file for --target bundler
This commit is contained in:
commit
16fc0596eb
@ -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