Skip to content

Commit 16fc059

Browse files
authored
Merge pull request #1646 from ibaryshnikov/explicit-extension
Added explicit extension for imported .wasm file for --target bundler
2 parents 7fe3dfd + 8f52f10 commit 16fc059

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ impl<'a> Context<'a> {
284284
| OutputMode::Node {
285285
experimental_modules: true,
286286
} => {
287-
imports.push_str(&format!("import * as wasm from './{}_bg';\n", module_name));
287+
imports.push_str(&format!("import * as wasm from './{}_bg.wasm';\n", module_name));
288288
for (id, js) in sorted_iter(&self.wasm_import_definitions) {
289289
let import = self.module.imports.get_mut(*id);
290290
import.module = format!("./{}.js", module_name);

0 commit comments

Comments
 (0)